keyring: fix test case for iterlines()

This commit is contained in:
Roman Zeyde 2016-11-12 20:51:14 +02:00
parent f0f89310ac
commit fabfcaaae2
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -80,4 +80,5 @@ PKSIGN
def test_iterlines():
sock = FakeSocket()
sock.rx.write(b'foo\nbar\nxyz')
assert list(keyring.iterlines(sock)) == []
sock.rx.seek(0)
assert list(keyring.iterlines(sock)) == [b'foo', b'bar']