1
#!/usr/bin/env python -tt
6
# Created by Holger Rapp on 18.01.09
7
# Copyright (c) 2009 HolgerRapp@gmx.net. All rights reserved.
9
# Last Modified: $Date$
16
from cStringIO import StringIO
18
from conf import WidelandsConfigParser
21
class _WLConfigParser_Base(unittest.TestCase):
24
self.cp = WidelandsConfigParser(StringIO(self.input))
27
class TestWLConfigParser_TestStringSubstitution_ExceptCorrectResult(_WLConfigParser_Base):
30
descr=_"The breath-taking beauty of these emerald lands has lured many a tribe into the attempt of taking them for itself."
32
wanted = 'The breath-taking beauty of these emerald lands has lured many a tribe into the attempt of taking them for itself.'
36
self.assertEqual(self.cp.getstring('global', 'descr'), self.wanted)
39
if __name__ == '__main__':
41
# k = TestMacro_UnmatchedExitm_ExceptRaise()
42
# unittest.TextTestRunner().run(k)