def test_bad_pointer(self) -> None:
    user_profile = self.example_user('hamlet')
    email = user_profile.email
    user_profile.pointer = 999999
    user_profile.save()
    self.login(email)
    with patch('logging.warning') as mock:
        result = self._get_home_page()
    mock.assert_called_once_with('example@example.com has invalid pointer 999999')
    self._sanity_check(result)
def test_bad_pointer(self) -> None:
    user_profile = self.example_user('hamlet')
    email = user_profile.email
    user_profile.pointer = 999999
    user_profile.save()
    self.login(email)
    with patch('logging.warning') as mock:
        result = self._get_home_page()
    mock.assert_called_once_with('example@example.com has invalid pointer 999999')
    self._sanity_check(result)