def test_email_display(self): addressbook.email_add(self.email) val, display = addressbook.email_display() self.assertTrue(self.email in display)
def test_email_add(self): self.assertEqual(addressbook.email_add(self.email)[0], True) self.assertEqual(addressbook.email_add(self.email)[0], False)
def test_email_delete(self): # ensure the email is active addressbook.email_add(self.email) self.assertEqual(addressbook.email_delete(self.email)[0], True) self.assertEqual(addressbook.email_delete(self.email)[0], False)
def test_email_delete(self): addressbook.email_add(self.email) # ensure the email is active self.assertEqual(addressbook.email_delete(self.email)[0], True) self.assertEqual(addressbook.email_delete(self.email)[0], False)