Пример #1
0
    def testInitFromFile(self):

        filename = fixtures.get("example_configuration.rc")

        Configuration.setFilename(filename)
        config = Configuration.instance()

        self.assertNotEqual(config['colors.status_bar.fg'], None)
Пример #2
0
    def testInitFromFile(self):

        filename = fixtures.get("example_configuration.rc")

        config = Configuration.initFromFile(filename)

        self.assertEqual(config['colors.status_bar.fg'], 'red')
Пример #3
0
 def testDefaultInit(self):
     config = Configuration.instance()
     self.assertNotEqual(config['colors.status_bar.fg'], None)