Skip to Content
Hands-On Software Engineering with Python
book

Hands-On Software Engineering with Python

by Nimesh Verma, Brian Allbee
October 2018
Beginner to intermediate
736 pages
17h 39m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Python

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architecture with Python

Software Architecture with Python

Anand Balachandran Pillai
Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

Publisher Resources

ISBN: 9781788622011Supplemental Content