def test_list_(self): """ Test for To maintain the feel of the nova command line, this function simply calls the server_list function. """ with patch.object(nova, "server_list", return_value=["A"]): self.assertEqual(nova.list_(), ["A"])
def test_list_(self): ''' Test for To maintain the feel of the nova command line, this function simply calls the server_list function. ''' with patch.object(nova, 'server_list', return_value=['A']): self.assertEqual(nova.list_(), ['A'])