示例#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)