def setUp(self): super(VerifyCommandsTestCase, self).setUp() self.verify = verify.VerifyCommands() self.endpoint = { 'endpoints': [{ 'auth_url': 'fake_auth_url', 'username': '******', 'password': '******', 'tenant_name': 'fake_tenant_name' }] } self.image1 = mock.Mock() self.image1.name = 'cirros-1' self.image1.id = 'fake_image_id_1' self.image2 = mock.Mock() self.image2.id = 'fake_image_id_2' self.image2.name = 'cirros-2' self.flavor1 = mock.Mock() self.flavor2 = mock.Mock() self.flavor1.id = 'fake_flavor_id_1' self.flavor2.id = 'fake_flavor_id_2' self.flavor1.ram = 128 self.flavor2.ram = 64
def setUp(self): super(VerifyCommandsTestCase, self).setUp() self.verify = verify.VerifyCommands() self.image1 = mock.Mock() self.image1.name = "cirros-1" self.image1.id = "fake_image_id_1" self.image2 = mock.Mock() self.image2.id = "fake_image_id_2" self.image2.name = "cirros-2" self.flavor1 = mock.Mock() self.flavor2 = mock.Mock() self.flavor1.id = "fake_flavor_id_1" self.flavor2.id = "fake_flavor_id_2" self.flavor1.ram = 128 self.flavor2.ram = 64