def test_parse_lccn(self, stub_nyp_platform_200_response): reader = PlatformResponseReader(stub_nyp_platform_200_response) assert reader._parse_lccn(reader.datas[0]) == "2017022370"
def test_parses_lccn_missing(self, stub_nyp_platform_200_response, stub_platform_record_missing): reader = PlatformResponseReader(stub_nyp_platform_200_response) assert reader._parse_lccn(stub_platform_record_missing) is None