Пример #1
0
 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'])
Пример #2
0
 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'])
Пример #3
0
 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"])