diff --git a/tests/browsable_api/test_browsable_api.py b/tests/browsable_api/test_browsable_api.py index a76d11fe3..758e3d1a4 100644 --- a/tests/browsable_api/test_browsable_api.py +++ b/tests/browsable_api/test_browsable_api.py @@ -65,6 +65,12 @@ class DropdownWithAuthTests(TestCase): content = response.content.decode() assert '>Log in<' in content + def test_dropdown_contains_logout_form(self): + self.client.login(username=self.username, password=self.password) + response = self.client.get('/') + content = response.content.decode() + assert '
' in content + @override_settings(ROOT_URLCONF='tests.browsable_api.no_auth_urls') class NoDropdownWithoutAuthTests(TestCase):