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
20
class _WLConfigParser_Base( unittest.TestCase ):
22
self.cp = WidelandsConfigParser( StringIO(self.input ))
24
class TestWLConfigParser_TestStringSubstitution_ExceptCorrectResult(_WLConfigParser_Base):
27
descr=_"The breath-taking beauty of these emerald lands has lured many a tribe into the attempt of taking them for itself."
29
wanted = "The breath-taking beauty of these emerald lands has lured many a tribe into the attempt of taking them for itself."
32
self.assertEqual( self.cp.getstring("global","descr"), self.wanted )
35
if __name__ == '__main__':
37
# k = TestMacro_UnmatchedExitm_ExceptRaise()
38
# unittest.TextTestRunner().run(k)