# Chapter 8 Unit Test ''' debug syntax programmer / developer a + b = 10 7,3 error exception programmer / developer a + b = 10 7,3 ui/ux developer > ui/ux tester front end testing $10 cart full stack developer > back end testing pipeline works $10 credit card unit testers mocking data Asserting a + b ? # Assert 21 = 10 Fail ''' # unittest Standard Library from OrderSystem import Contact import unittest # from unitest import TestCase class TestOrderSystem(unittest.TestCase): def test_contact(self): i_name = input("Enter your name: ") i_email = input("Enter your email: ") contact = Contact(i_name, i_email) # user input > memory > storage > web service > return cc > recp self.assertEqual(contact.name, i_name) self.assertEqual(contact.email, i_email) if __name__ == "__main__": unittest.main() # def main because main() built in