def test_dummy_user_service_exception():
 user_service = UserService()
 with assert_raises(NotImplementedError):
  user_service.get_current_user()

def test_dummy_user_service_exception ( ) : user_service = UserService ( ) with assert_raises ( NotImplementedError ) : user_service . get_current_user ( )
tests notimplemented error raised by userservice when not instantiated with kwarg get_current_user .