示例#1
0
 def test_upload_process(self):
     self.assertEqual(len(Device.objects.all()), 4)
     _upload_process(TEST_ARP_ENTRY)
     self.assertEqual(len(Device.objects.all()), 8)
示例#2
0
 def test_upload_leases(self):
     _upload_process(TEST_LEASES_ENTRY)
     self.assertEqual(len(Device.objects.all()), 4)
     device = Device.objects.get(mac_address="8C:58:77:02:8E:5D")
     self.assertEqual(device.suggested_name, 'Kristys-iPhone')