MCPcopy Index your code
hub / github.com/python/cpython / test_add

Method test_add

Lib/test/string_tests.py:105–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 return teststrings
104
105 def test_add(self):
106 s = self.fixtype('ab')
107 self.assertEqual(s + self.fixtype(''), s)
108 self.assertEqual(self.fixtype('') + s, s)
109 self.assertEqual(s + self.fixtype('cd'), self.fixtype('abcd'))
110
111 def test_mul(self):
112 s = self.fixtype('ab')

Callers

nothing calls this directly

Calls 2

fixtypeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected