def test_find_time_positions_small_delta(self): me = MatchupEngine(self.data, Configuration(time_delta=6)) time_positions = me.find_matchup_times(1261447205)[0] np.assert_array_almost_equal((1, 1261447200), time_positions)
def test_find_time_positions_huge_delta(self): me = MatchupEngine(self.data, Configuration(time_delta=100000)) time_position = me.find_matchup_times(1261440250)[0] np.assert_array_almost_equal((0, 1261440000), time_position)