Beispiel #1
0
 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"])
Beispiel #2
0
 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'])
Beispiel #3
0
 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'])