@@ -15,3 +15,27 @@ class UnitTestPyparsing(unittest.TestCase):
'08:00:27:a3:83:43')
self.assertEqual(controller.statistics.process_db_query('macaddress(ipaddress=least_used(ipaddress))'),
'52:54:00:12:35:02')
+ self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress=least_used(macaddress))'),
+ '10.0.2.15')
+ self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress=most_used(macaddress))'),
+ ['104.83.103.45',
+ '13.107.21.200',
+ '131.253.61.100',
+ '172.217.23.142',
+ '172.217.23.174',
+ '192.168.33.254',
+ '204.79.197.200',
+ '23.51.123.27',
+ '35.161.3.50',
+ '52.11.17.245',
+ '52.34.37.177',
+ '52.39.210.199',
+ '52.41.250.141',
+ '52.85.173.182',
+ '54.149.74.139',
+ '54.187.98.195',
+ '54.192.44.108',
+ '54.192.44.177',
+ '72.247.178.113',
+ '72.247.178.67',
+ '93.184.220.29'])