def setUp(self): super(ConsolesControllerTest, self).setUp() self.flags(verbose=True) self.instance_db = FakeInstanceDB() self.stubs.Set(db, 'instance_get', self.instance_db.return_server_by_id) self.stubs.Set(db, 'instance_get_by_uuid', self.instance_db.return_server_by_uuid) self.uuid = str(stdlib_uuid.uuid4()) self.url = '/v3/fake/servers/%s/consoles' % self.uuid self.controller = consoles.ConsolesController()
def _set_up_controller(self): self.controller = consoles_v21.ConsolesController()