MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_splitattr

Method test_splitattr

Lib/test/test_urlparse.py:1648–1655  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1646 ('http://example.com?foo=bar#baz', 'boo'))
1647
1648 def test_splitattr(self):
1649 splitattr = urllib.parse._splitattr
1650 self.assertEqual(splitattr('/path;attr1=value1;attr2=value2'),
1651 ('/path', ['attr1=value1', 'attr2=value2']))
1652 self.assertEqual(splitattr('/path;'), ('/path', ['']))
1653 self.assertEqual(splitattr(';attr1=value1;attr2=value2'),
1654 ('', ['attr1=value1', 'attr2=value2']))
1655 self.assertEqual(splitattr('/path'), ('/path', []))
1656
1657 def test_splitvalue(self):
1658 # Normal cases are exercised by other tests; test pathological cases

Callers

nothing calls this directly

Calls 2

splitattrFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected