コード例 #1
0
ファイル: Filter_test.py プロジェクト: ahmadkhal/Draw-Paths
 def test_time_then_location(self):
     self.caps_df = solveit.FilterByTime(self.caps_df, "13:00:00",
                                         "13:10:00")
     self.caps_df = solveit.FilterByTime(self.caps_df, "13:00:00",
                                         "13:05:00")
     self.caps_df = solveit.FilterByLocation(self.caps_df, (12, 12),
                                             (50, 50))
     self.caps_df.filter()
     self.assertEqual(len(self.caps_df.get_data_frame()), 32)
コード例 #2
0
ファイル: Filter_test.py プロジェクト: ahmadkhal/Draw-Paths
 def test_location(self):
     self.caps_df = solveit.FilterByLocation(self.caps_df, (12, 12),
                                             (50, 50))
     self.caps_df.filter()
     self.assertEqual(len(self.caps_df.get_data_frame()), 1337)