We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f543f6a commit 683fe3eCopy full SHA for 683fe3e
1 file changed
tests/test_api.py
@@ -1,5 +1,6 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
+from __future__ import unicode_literals
4
import clamd
5
from six import BytesIO
6
from contextlib import contextmanager
@@ -76,6 +77,12 @@ def test_instream(self):
76
77
{'stream': ('FOUND', 'Eicar-Test-Signature')}
78
)
79
80
+ def test_insteam_success(self):
81
+ eq_(
82
+ self.cd.instream(BytesIO(b"foo")),
83
+ {'stream': ('OK', None)}
84
+ )
85
+
86
87
class TestUnixSocketTimeout(TestUnixSocket):
88
def __init__(self):
0 commit comments