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

Method test_train_dict_arguments

Lib/test/test_zstd.py:1341–1349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1339 decompress(dat1, dic2)
1340
1341 def test_train_dict_arguments(self):
1342 with self.assertRaises(ValueError):
1343 train_dict([], 100*_1K)
1344
1345 with self.assertRaises(ValueError):
1346 train_dict(SAMPLES, -100)
1347
1348 with self.assertRaises(ValueError):
1349 train_dict(SAMPLES, 0)
1350
1351 def test_finalize_dict_arguments(self):
1352 with self.assertRaises(TypeError):

Callers

nothing calls this directly

Calls 2

train_dictFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected