def test_get_not_found(self, dao_find_profile_by_userid, dao_is_cti_enabled): userid = 1 dao_find_profile_by_userid.return_value = None dao_is_cti_enabled.return_value = True result = user_cti_profile_services.get(userid) assert_that(result.user_id, equal_to(userid)) assert_that(result.cti_profile_id, none()) self.assertTrue(result.enabled)
def then_i_get_a_response_with_a_null_cti_profile(step): profile_response = world.response.data assert_that(profile_response['cti_profile_id'], none())
def test_read_unknown(self): result = self.repository.read("acme_corp", "core", "testschema", "v0.0.1") assert_that(result, none())