Example #1
0
    def test_no_records(self):
        """
        We can't find any records for the given postcode in the AddressBase table

        We should fall back to centroid-based geocoding using ONSPD
        """
        result = geocode_point_only("DD1 1DD")
        self.assertIsInstance(result, OnspdGeocoder)
Example #2
0
    def test_valid(self):
        """
        We find records for the given postcode in the AddressBase table
        There are some corresponding records in the ONSUD for the UPRNs we found

        Valid result should be returned based on geocoding using AddressBase
        """
        result = geocode_point_only("BB1 1BB")
        self.assertIsInstance(result, AddressBaseGeocoder)