def test_select_two_with_none_failure(self): test = lambda: select(self.DEV_AND_TEST, None) self.assertRaises(UnspecifiedDBError, test)
def test_select_one_with_none(self): self.assertEquals('prod.yaml', select(self.PROD, None))
def test_select_missing_db_failure(self): test = lambda: select(self.DEV_AND_TEST, 'prod') self.assertRaises(UnknownDBError, test)
def test_normal_select(self): self.assertEquals('dev.yaml', select(self.DEV_AND_TEST, 'dev'))