def test_has_application_custom_config(self): expected = '/home/r00t' cihai = Cihai({ 'data_path': expected }) mydataset = cihai.use(MyDataset) result = mydataset.cihai.config.get('data_path') self.assertEqual(expected, result)
def test_data_path_by_config_custom(self): """Test default data_path from config.""" expected = '/home/r00t' cihai = Cihai({ 'data_path': expected }) mydataset = cihai.use(MyDataset) result = mydataset.get_datapath('data_path') self.assertIn(expected, result)