コード例 #1
0
ファイル: nova_test.py プロジェクト: DaveQB/salt
 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
ファイル: test_nova.py プロジェクト: bsemar/IntCont
 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"])