def test_load_next_data_point():
    for filename in filename_list:
        my_reader = Reader(filename)  # opens up a new instance of the Reader

        [point_1, point_2] = my_reader.load_next_data_points()
        assert point_1 == point_2

        point_3 = None
        point_4 = None
        for i in range(0, rate):
            [point_3, point_4] = my_reader.load_next_data_points()

        assert point_3 == point_4
        assert point_1 == point_4
def test_still_reading():
    for filename in filename_list:
        my_reader = Reader(filename, seconds_at_a_time,
                           16)  # opens up a new instance of the Reader

        assert my_reader.still_reading()

        for i in range(0, int(
                seconds / seconds_at_a_time)):  # read through all data points
            my_reader.get_next_data_instant()

        assert my_reader.still_reading()

        my_reader.load_next_data_points(
        )  # try to read the next information bit
        assert not my_reader.still_reading()