def test_get_host(self):
     get_host = host.get_machine_or_host(
         self.host_ids[0],
         user=self.user_object,
     )
     self.assertIsNotNone(get_host)
     self.assertEqual(get_host['mac'], '28:6e:d4:46:c4:25')
 def test_get_machine(self):
     host.del_host(
         self.host_ids[0],
         user=self.user_object,
     )
     get_machine = host.get_machine_or_host(
         self.host_ids[0],
         user=self.user_object,
     )
     name = []
     for k, v in get_machine.items():
         if k == 'name':
             name.append(v)
     self.assertEqual(name, [])
     self.assertEqual(get_machine['mac'], '28:6e:d4:46:c4:25')