コード例 #1
0
ファイル: test_addressbook.py プロジェクト: jmwoloso/Python_3
 def test_email_display(self):
     addressbook.email_add(self.email)
     val, display = addressbook.email_display()
     self.assertTrue(self.email in display)
コード例 #2
0
ファイル: test_addressbook.py プロジェクト: jmwoloso/Python_3
 def test_email_add(self):
     self.assertEqual(addressbook.email_add(self.email)[0], True)
     self.assertEqual(addressbook.email_add(self.email)[0], False)
コード例 #3
0
ファイル: test_addressbook.py プロジェクト: jmwoloso/Python_3
 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)
コード例 #4
0
 def test_email_display(self):
     addressbook.email_add(self.email)
     val, display = addressbook.email_display()
     self.assertTrue(self.email in display)
コード例 #5
0
 def test_email_add(self):
     self.assertEqual(addressbook.email_add(self.email)[0], True)
     self.assertEqual(addressbook.email_add(self.email)[0], False)
コード例 #6
0
 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)