def testInitFromFile(self): filename = fixtures.get("example_configuration.rc") Configuration.setFilename(filename) config = Configuration.instance() self.assertNotEqual(config['colors.status_bar.fg'], None)
def testInitFromFile(self): filename = fixtures.get("example_configuration.rc") config = Configuration.initFromFile(filename) self.assertEqual(config['colors.status_bar.fg'], 'red')
def testDefaultInit(self): config = Configuration.instance() self.assertNotEqual(config['colors.status_bar.fg'], None)