def test_export_element(self): # Test exporting a non-system element, should just return href result = Host.create('api-export-test', '2.3.4.5') self.assertTrue(result.href.startswith('http')) host = Host('api-export-test') self.assertIsInstance(host.export(), DownloadTask) with self.assertRaises(TaskRunFailed): host.export(filename='/foo').wait() host.delete()
def test_system_element_no_export(self): host = Host('ALL-SYSTEMS.MCAST.NET') self.assertFalse(host.export())