def test_get(self, profile_dao_get): profile = CtiProfile() profile_dao_get.return_value = profile result = services.get(1) assert_that(result, same_instance(profile)) profile_dao_get.assert_called_with(1)
def get(cti_profile_id): profile = services.get(cti_profile_id) result = formatter.to_api(profile) return make_response(result, 200)
def get(cti_profile_id): profile = services.get(cti_profile_id) result = formatter.to_api(profile) return make_response(result, 200)