MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / test_selector_str_id

Method test_selector_str_id

noshadows.py:174–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 self.assertEqual(selector_str(rule), ".className")
173
174 def test_selector_str_id(self):
175 (rule,) = parse_stylesheet("#identifier {}")
176 self.assertEqual(selector_str(rule), "#identifier")
177
178 def test_selector_str_with_brackets(self):
179 (rule,) = parse_stylesheet('input[type="text"] {}')

Callers

nothing calls this directly

Calls 1

selector_strFunction · 0.85

Tested by

no test coverage detected