MCPcopy
hub / github.com/django/django / test_sidebar_starts_open

Method test_sidebar_starts_open

tests/admin_views/test_nav_sidebar.py:139–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 )
138
139 def test_sidebar_starts_open(self):
140 from selenium.webdriver.common.by import By
141
142 self.selenium.get(
143 self.live_server_url + reverse("test_with_sidebar:auth_user_changelist")
144 )
145 main_element = self.selenium.find_element(By.CSS_SELECTOR, "#main")
146 self.assertIn("shifted", main_element.get_attribute("class").split())
147
148 def test_sidebar_can_be_closed(self):
149 from selenium.webdriver.common.by import By

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.90
getMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected