keyring: fix test case for iterlines()
This commit is contained in:
parent
f0f89310ac
commit
fabfcaaae2
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user