'Makes sure that get_credit_state returns None if the user does not
have a corresponding UserProfile. This shouldn\'t happen in
real environments'

def test_no_profile_name(self):

    profile = UserProfile.objects.get(user_id=self.user.id)
    profile.delete()
    self.assertIsNone(self.service.get_credit_state(self.user.id, self.course.id))
