def test_register_conductor_existing_fails(self): c = utils.get_test_conductor() self.dbapi.register_conductor(c) self.assertRaises( exception.ConductorAlreadyRegistered, self.dbapi.register_conductor, c)
def _create_test_cdr(self, **kwargs): c = utils.get_test_conductor(**kwargs) return self.dbapi.register_conductor(c)
def test_register_conductor_override(self): c = utils.get_test_conductor() self.dbapi.register_conductor(c) self.dbapi.register_conductor(c, update_existing=True)
def setUp(self): super(TestConductorObject, self).setUp() self.fake_conductor = utils.get_test_conductor( updated_at=timeutils.utcnow()) self.dbapi = db_api.get_instance()
def setUp(self): super(TestConductorObject, self).setUp() self.fake_conductor = (utils.get_test_conductor( updated_at=timeutils.utcnow()))
def setUp(self): super(TestConductorObject, self).setUp() self.fake_conductor = ( utils.get_test_conductor(updated_at=timeutils.utcnow()))