2 Commits fc29b98fc1 ... d0e142463a

Author SHA1 Message Date
  Roey Regev d0e142463a Additional tests for in operator 6 years ago
  Roey Regev 853ccf996d test of in on one Element 6 years ago
1 changed files with 4 additions and 0 deletions
  1. 4 0
      code/Test/test_NestedNamedQueries.py

+ 4 - 0
code/Test/test_NestedNamedQueries.py

@@ -17,6 +17,10 @@ class UnitTestPyparsing(unittest.TestCase):
                          '52:54:00:12:35:02')
         self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress in least_used(macaddress))'),
                          '10.0.2.15')
+        self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress in 08:00:27:a3:83:43)'),
+                         '10.0.2.15')
+        self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress in [08:00:27:a3:83:43])'),
+                         '10.0.2.15')
         self.assertEqual(controller.statistics.process_db_query('ipaddress(macaddress in most_used(macaddress))'),
                          ['104.83.103.45',
                           '13.107.21.200',