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

Method test_tripletwise

noshadows.py:132–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130 sys.exit(retval)
131
132 def test_tripletwise(self):
133 self.assertEqual(
134 list(tripletwise("ABCDEF")),
135 [("A", "B", "C"), ("B", "C", "D"), ("C", "D", "E"), ("D", "E", "F")],
136 )
137
138 def test_tripletwise_too_short(self):
139 self.assertEqual(list(tripletwise("AB")), [])

Callers

nothing calls this directly

Calls 1

tripletwiseFunction · 0.85

Tested by

no test coverage detected