예제 #1
0
 def test_that_contact_does_not_exist_if_there_is_no_connection(self):
     view = UReporterApiView()
     connection = None
     self.assertEqual(False, view.contact_exists(connection))
예제 #2
0
 def test_that_contact_exists_when_connection_has_contact(self):
     view = UReporterApiView()
     connection = Connection(contact=Contact())
     self.assertEqual(True, view.contact_exists(connection))