def test_flavor_list(self, mock_auth): ''' Test for Return a list of available flavors (nova flavor-list) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'flavor_list', MagicMock(return_value='A')): self.assertTrue(nova.flavor_list())
def test_flavor_list(self): ''' Test for Return a list of available flavors (nova flavor-list) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'flavor_list', MagicMock(return_value='A')): self.assertTrue(nova.flavor_list())
def test_flavor_list(self): """ Test for Return a list of available flavors (nova flavor-list) """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "flavor_list", MagicMock(return_value="A")): self.assertTrue(nova.flavor_list())