Listings on Airbnb in Vancouver may include Registration number.
Example listing
The MVP policies should verify these number to make sure they are valid. For example, the number from a Vancouver listing should exist in Vancouver Open Data Portal Business licenses
Tasks
Create policy methods
Registration number follows the format of yy-123456, where yy is last 2 digits of the expiry year, followed by -, and 6 digits. Can assume that the listings expiry is from 2000 onward.
Registration number exists in JSON results from API request to Vancouver Open Data Portal Business licenses. Check API tab in the database for expected JSON result. No need to deal with API here.
Return status by listing address and registration number in JSON results from API request to Vancouver Open Data Portal Business licenses. Check API tab in the database for expected JSON result. No need to deal with API here.
Create unit tests for the methods in task 1
Make sure to include a range of inputs (valid, invalid, missing numbers) and suitable expected outputs
Description
Listings on Airbnb in Vancouver may include Registration number. Example listing
The MVP policies should verify these number to make sure they are valid. For example, the number from a Vancouver listing should exist in Vancouver Open Data Portal Business licenses
Tasks
Create policy methods
-
, and 6 digits. Can assume that the listings expiry is from 2000 onward.Create unit tests for the methods in task 1
Links