def test_terms_of_service_first_time_template(self) -> None:
    user = self.example_user('hamlet')
    email = user.email
    self.login(email)
    user.tos_version = None
    user.save()
    with self.settings(FIRST_TIME_TOS_TEMPLATE='hello.html'), self.settings(TOS_VERSION='99.99'):
        result = self.client_post('/accounts/accept_terms/')
        self.assertEqual(result.status_code, 200)
        self.assert_in_response('I agree to the', result)
        self.assert_in_response('most productive group chat', result)
def test_terms_of_service_first_time_template(self) -> None:
    user = self.example_user('hamlet')
    email = user.email
    self.login(email)
    user.tos_version = None
    user.save()
    with self.settings(FIRST_TIME_TOS_TEMPLATE='hello.html'), self.settings(TOS_VERSION='99.99'):
        result = self.client_post('/accounts/accept_terms/')
        self.assertEqual(result.status_code, 200)
        self.assert_in_response('I agree to the', result)
        self.assert_in_response('most productive group chat', result)