def test_get_weatherstation_years_to_retrieve(self, uow):
        syrx_file_handler = SyrxFileHandler()

        records = [{"weatherstation_id": "ws1", "timestamp": "2014-09-08 13:15"},
                   {"weatherstation_id": "ws1", "timestamp": "2014-10-08 13:15"},
                   {"weatherstation_id": "ws1", "timestamp": "2015-10-08 13:15"},
                   {"weatherstation_id": "ws2", "timestamp": "2015-10-08 13:15"},
                   {"weatherstation_id": "ws3", "timestamp": None}]

        rv = syrx_file_handler.get_weatherstation_years_to_retrieve(records)

        assert rv["ws1"] == {2014, 2015}
        assert rv["ws2"] == {2015}
        assert rv["ws3"] == set()