We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4a27a3 commit e50440cCopy full SHA for e50440c
1 file changed
tests/test_api.py
@@ -24,9 +24,12 @@ def mkdtemp(*args, **kwargs):
24
shutil.rmtree(temp_dir)
25
26
27
-class TestUnixSocket():
+class TestUnixSocket(object):
28
+ def __init__(self):
29
+ self.kwargs = {}
30
+
31
def setup(self):
- self.cd = clamd.ClamdUnixSocket()
32
+ self.cd = clamd.ClamdUnixSocket(**self.kwargs)
33
34
def test_ping(self):
35
assert_true(self.cd.ping())
@@ -72,3 +75,8 @@ def test_instream(self):
72
75
self.cd.instream(BytesIO(clamd.EICAR)),
73
76
{'stream': ('FOUND', 'Eicar-Test-Signature')}
74
77
)
78
79
80
+class TestUnixSocketTimeout(TestUnixSocket):
81
82
+ self.kwargs = {"timeout": 10}
0 commit comments