Я запустил тестовый набор, который присутствовал в пакете . Кто-нибудь есть идеи, что я сделал не так?
python3 manage.py test django_clamd.tests
Результат
======================================================================
FAIL: test_has_virus (django_clamd.tests.test.VirusValidatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/django_clamd/tests/test.py", line 23, in test_has_virus
self.assertFalse(form.is_valid())
AssertionError: True is not false
======================================================================
FAIL: test_infinite_stream (django_clamd.tests.test.VirusValidatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/django_clamd/tests/test.py", line 54, in test_infinite_stream
self.assertGreaterEqual(stream._read_bytes, 5 * 1024 * 1024)
AssertionError: 25600 not greater than or equal to 5242880
Ran 3 tests in 0.010s
FAILED (failures=2)