(self)
| 1349 | train_dict(SAMPLES, 0) |
| 1350 | |
| 1351 | def test_finalize_dict_arguments(self): |
| 1352 | with self.assertRaises(TypeError): |
| 1353 | finalize_dict({1:2}, (b'aaa', b'bbb'), 100*_1K, 2) |
| 1354 | |
| 1355 | with self.assertRaises(ValueError): |
| 1356 | finalize_dict(TRAINED_DICT, [], 100*_1K, 2) |
| 1357 | |
| 1358 | with self.assertRaises(ValueError): |
| 1359 | finalize_dict(TRAINED_DICT, SAMPLES, -100, 2) |
| 1360 | |
| 1361 | with self.assertRaises(ValueError): |
| 1362 | finalize_dict(TRAINED_DICT, SAMPLES, 0, 2) |
| 1363 | |
| 1364 | def test_train_dict_c(self): |
| 1365 | # argument wrong type |
nothing calls this directly
no test coverage detected