Exemplo n.º 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"])
Exemplo n.º 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'])
Exemplo n.º 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'])