def test_accept_terms_of_service(self) -> None:
    email = self.example_email('hamlet')
    self.login(email)
    result = self.client_post('/accounts/accept_terms/')
    self.assertEqual(result.status_code, 200)
    self.assert_in_response('I agree to the', result)
    result = self.client_post('/accounts/accept_terms/', {'terms': True})
    self.assertEqual(result.status_code, 302)
    self.assertEqual(result['Location'], '/')
def test_accept_terms_of_service(self) -> None:
    email = self.example_email('hamlet')
    self.login(email)
    result = self.client_post('/accounts/accept_terms/')
    self.assertEqual(result.status_code, 200)
    self.assert_in_response('I agree to the', result)
    result = self.client_post('/accounts/accept_terms/', {'terms': True})
    self.assertEqual(result.status_code, 302)
    self.assertEqual(result['Location'], '/')