def test_flavor_create(self, mock_auth): ''' Test for Add a flavor to nova (nova flavor-create) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'flavor_create', MagicMock(return_value='A')): self.assertTrue(nova.flavor_create('name'))
def test_flavor_create(self): ''' Test for Add a flavor to nova (nova flavor-create) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'flavor_create', MagicMock(return_value='A')): self.assertTrue(nova.flavor_create('name'))
def test_flavor_create(self): """ Test for Add a flavor to nova (nova flavor-create) """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "flavor_create", MagicMock(return_value="A")): self.assertTrue(nova.flavor_create("name"))