Exemplo n.º 1
0
 def testEditContactInfo2(self):
     ci = ContactInfo()
     ci.edit_contact_info()
     self.assertEqual("", ci.name)
     self.assertEqual("", ci.phone_number)
     self.assertEqual("", ci.email)
     self.assertEqual("", ci.address)
     self.assertEqual("", ci.office_hours)
     self.assertEqual("", ci.office_number)
Exemplo n.º 2
0
 def testEditContactInfo1(self):
     ci = ContactInfo()
     ci.edit_contact_info("myName", "4145551234", "*****@*****.**", "1234 Street St, Milwaukee, WI, 53211")
     self.assertEqual("myName", ci.name)
     self.assertEqual("4145551234", ci.phone_number)
     self.assertEqual("*****@*****.**", ci.email)
     self.assertEqual("1234 Street St, Milwaukee, WI, 53211", ci.address)
     self.assertEqual("", ci.office_hours)
     self.assertEqual("", ci.office_number)
Exemplo n.º 3
0
 def testInit0(self):
     ci = ContactInfo()
     self.assertEqual("", ci.name)
     self.assertEqual("", ci.phone_number)
     self.assertEqual("", ci.email)
     self.assertEqual("", ci.address)
     self.assertEqual("", ci.office_hours)
     self.assertEqual("", ci.office_number)
Exemplo n.º 4
0
 def testGetPrivate1(self):
     ci = ContactInfo("myName", "4145551234", "*****@*****.**", "1234 Street St, Milwaukee, WI, 53211", "9-11TR",
                      "EMS371")
     infolist = ci.get_private()
     self.assertEqual(infolist, ["9-11TR", "EMS371"])
Exemplo n.º 5
0
 def testGetPrivate0(self):
     ci = ContactInfo()
     infolist = ci.get_private()
     self.assertEqual(infolist, ["", ""])
Exemplo n.º 6
0
 def testGetPublic1(self):
     ci = ContactInfo("myName", "4145551234", "*****@*****.**", "1234 Street St, Milwaukee, WI, 53211")
     infolist = ci.get_public()
     self.assertEqual(infolist, ["myName", "4145551234", "*****@*****.**", "1234 Street St, Milwaukee, WI, 53211"])
Exemplo n.º 7
0
 def testGetPublic0(self):
     ci = ContactInfo()
     infolist = ci.get_public()
     self.assertEqual(infolist, ["", "", "", ""])