Esempio n. 1
0
 def test_vm_diskstats(self):
     '''
         Test to return disk usage counters used by the vms
     '''
     with patch.object(xapi, "_get_xapi_session", MagicMock()):
         self.assertDictEqual(xapi.vm_diskstats(""), {})
Esempio n. 2
0
 def test_vm_diskstats(self):
     '''
         Test to return disk usage counters used by the vms
     '''
     with patch.object(xapi, "_get_xapi_session", MagicMock()):
         self.assertDictEqual(xapi.vm_diskstats(""), {})