MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_train_dict_arguments

Method test_train_dict_arguments

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

train_dictFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected