Add test for QNetworkReply.abort

This commit is contained in:
Florian Bruhin 2017-04-17 16:02:57 +02:00
parent d60fc90ffd
commit db8b6d3e68

View File

@ -98,3 +98,4 @@ def test_redirect_network_reply():
reply = networkreply.RedirectNetworkReply(url)
assert reply.readData(1) == b''
assert reply.attribute(QNetworkRequest.RedirectionTargetAttribute) == url
reply.abort() # shouldn't do anything