def testFromBoth(self):
     config = WebappConfiguration()
     sys.argv = 'maay --db-host truc'.split()
     config.config_file = osp.join(osp.dirname(__file__), 'data', 'webapp2.ini')
     config.load()
     self.assertEquals(config.db_host, 'truc')
     self.assertEquals(config.db_name, 'muche')
 def test0FromConfigFile(self):
     config = WebappConfiguration()
     config.config_file = osp.join(osp.dirname(__file__), 'data',
                                   'webapp1.ini')
     config.load()
     self.assertEquals(config.db_host, 'eusebius')
     self.assertEquals(config.db_name, 'maay')
 def testFromBoth(self):
     config = WebappConfiguration()
     sys.argv = 'maay --db-host truc'.split()
     config.config_file = osp.join(osp.dirname(__file__), 'data',
                                   'webapp2.ini')
     config.load()
     self.assertEquals(config.db_host, 'truc')
     self.assertEquals(config.db_name, 'muche')
 def test0FromConfigFile(self):
     config = WebappConfiguration()
     config.config_file = osp.join(osp.dirname(__file__), 'data', 'webapp1.ini')
     config.load()
     self.assertEquals(config.db_host, 'eusebius')
     self.assertEquals(config.db_name, 'maay')