示例#1
0
 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
 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)