Roey Regev пре 6 година
родитељ
комит
853ccf996d
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      code/Test/test_SQLQueries.py

+ 4 - 0
code/Test/test_SQLQueries.py

@@ -25,6 +25,10 @@ class UnitTestPyparsing(unittest.TestCase):
         query = "Select ipAddress from ip_statistics where ipaddress = 'abc'"
         self.assertEqual([], controller.statistics.stats_db.process_db_query(query))
 
+    def in_on_one_op(self):
+        query = "Select ipAddress from ip_statistics where pktsSent in [5]"
+        self.assertEqual("72.247.178.67", controller.statistics.stats_db.process_db_query(query))
+
     def test_severaloperator(self):
         query1 = "Select ipAddress from ip_Statistics where pktsSent = '5'"
         query2 = "Select ipAddress from ip_Statistics where pktsSent < '5'"