MCPcopy Create free account
hub / github.com/python/cpython / test_permute_right_option_groups

Method test_permute_right_option_groups

Lib/test/test_clinic.py:4453–4462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4451 self.assertEqual(actual, expected)
4452
4453 def test_permute_right_option_groups(self):
4454 expected = (
4455 (),
4456 (1,),
4457 (1, 2),
4458 (1, 2, 3),
4459 )
4460 data = list(zip([1, 2, 3])) # Generate a list of 1-tuples.
4461 actual = tuple(permute_right_option_groups(data))
4462 self.assertEqual(actual, expected)
4463
4464 def test_permute_optional_groups(self):
4465 empty = {

Callers

nothing calls this directly

Calls 3

listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected