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