@@ -0,0 +1,543 @@
+import unittest%0Aimport reminisc.config.reader as reader%0A%0Aclass ReminiscConfigParserTest(unittest.TestCase):%0A%0A%09def setUp(self):%09%0A%09%09configstring = %22%22%22%0A%09%09%09%5BSection A%5D%0A%09%09%09option 1 = 3000%0A%0A%09%09%09%5BSection B%5D%0A%09%09%09option 3 = Fry%0A%09%09%22%22%22%0A%0A%09%09self.parser = reader.ReminiscConfigParser()%0A%09%09self.parser.read_string(configstring)%0A%0A%09def test_should_contain_valuse_from_config(self):%0A%09%09configdict = self.parser.as_config_dict()%0A%09%09self.assertEqual('Fry', configdict.get('Section B', 'option 3'))%0A%09%09self.assertEqual(3000, int(configdict.get('Section A', 'option 1')))

test for config parser