def METHOD_NAME(self, _):
    request_user = _build_mock_user('same-gym', is_trainer=True)
    request = _build_mock_request(request_user)
    user_from_db_lookup = _build_mock_user('same-gym', is_trainer=False)
    with mock.patch('wger.core.views.user.get_object_or_404', return_value=user_from_db_lookup):
        resp = trainer_login(request, 'primary-key-not-needed-because-get-object-is-mocked')
    self.assertEqual(302, resp.status_code)