Skip to content

Commit 683fe3e

Browse files
committed
test for OK stream
1 parent f543f6a commit 683fe3e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
from __future__ import unicode_literals
34
import clamd
45
from six import BytesIO
56
from contextlib import contextmanager
@@ -76,6 +77,12 @@ def test_instream(self):
7677
{'stream': ('FOUND', 'Eicar-Test-Signature')}
7778
)
7879

80+
def test_insteam_success(self):
81+
eq_(
82+
self.cd.instream(BytesIO(b"foo")),
83+
{'stream': ('OK', None)}
84+
)
85+
7986

8087
class TestUnixSocketTimeout(TestUnixSocket):
8188
def __init__(self):

0 commit comments

Comments
 (0)