Unit testing the Address class

The Address class tests initially report that the following test methods need to be written:

  • Methods: test__init__, test_del_building_address, test_del_city, test_del_country, test_del_postal_code, test_del_region, test_del_street_address, test_get_building_address, test_get_city, test_get_country, test_get_postal_code, test_get_region, test_get_street_address, test_set_building_address, test_set_city, test_set_country, test_set_postal_codetest_set_region, test_set_street_address, and test_standard_address

  • Properties: testbuilding_address, testcity, testcountry, testpostal_code, testregion, and teststreet_address

The primary concern of the test methods for the properties of the class being tested are, ...

Get Hands-On Software Engineering with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.