def test_that_contact_does_not_exist_if_there_is_no_connection(self): view = UReporterApiView() connection = None self.assertEqual(False, view.contact_exists(connection))
def test_that_contact_exists_when_connection_has_contact(self): view = UReporterApiView() connection = Connection(contact=Contact()) self.assertEqual(True, view.contact_exists(connection))