def test_create_driver_action(): driver_action_test = driver_action.DriverAction(TEST_XML) assert driver_action_test.image.ID == "0" assert driver_action_test.image.size == "40" assert driver_action_test.datastore.ds_mad == "fs" assert driver_action_test.datastore.total_mb == "86845"
def test_create_driver_action(self): driver_action_test = driver_action.DriverAction(TEST_XML) self.assertEqual(driver_action_test.image.id, "0") self.assertEqual(driver_action_test.image.size, "40") self.assertEqual(driver_action_test.datastore.ds_mad, "fs") self.assertEqual(driver_action_test.datastore.total_mb, "86845")
def test_monitor_xml(): driver_action_test = driver_action.DriverAction(MONITOR_XML) assert driver_action_test.datastore.ID == "117" assert driver_action_test.datastore.storage_pool == "thin"
def test_stat_xml(): driver_action_test = driver_action.DriverAction(STAT_XML) assert driver_action_test.datastore.ID == "106"
def test_mkfs_xml(self): da = driver_action.DriverAction(MKFS_XML) self.assertEqual(da.image.fs, "") self.assertEqual(da.image.format, "qcow2")
def test_monitor_xml(self): driver_action_test = driver_action.DriverAction(MONITOR_XML) self.assertEqual(driver_action_test.datastore.id, "117")
def test_stat_xml(self): driver_action_test = driver_action.DriverAction(STAT_XML) self.assertEqual(driver_action_test.datastore.id, "106")
def test_monitor_xml(self): driver_action_test = driver_action.DriverAction(MONITOR_XML) self.assertEqual(driver_action_test.datastore.ID, "117") self.assertEqual(driver_action_test.datastore.storage_pool, "thin")