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

Method test_radd_specials

Lib/test/test_userlist.py:32–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.assertEqual(u2, list("spameggs"))
31
32 def test_radd_specials(self):
33 u = UserList("eggs")
34 u2 = "spam" + u
35 self.assertEqual(u2, list("spameggs"))
36 u2 = u.__radd__(UserList("spam"))
37 self.assertEqual(u2, list("spameggs"))
38
39 def test_iadd(self):
40 super().test_iadd()

Callers

nothing calls this directly

Calls 4

__radd__Method · 0.95
UserListClass · 0.90
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected