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

Method test_range_data

Lib/test/test_statistics.py:1090–1094  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1088 self.assertEqual(result, expected)
1089
1090 def test_range_data(self):
1091 # Test that functions work with range objects.
1092 data = range(20, 50, 3)
1093 expected = self.func(list(data))
1094 self.assertEqual(self.func(data), expected)
1095
1096 def test_bad_arg_types(self):
1097 # Test that function raises when given data of the wrong type.

Callers

nothing calls this directly

Calls 3

listClass · 0.85
funcMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected