fix some pyflakes

This commit is contained in:
Bastian Schroll 2019-10-23 22:11:57 +02:00
parent 464c0c2298
commit 1d90b3d38b
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
3 changed files with 7 additions and 7 deletions

View file

@ -34,19 +34,19 @@ def buildPacket():
def test_createPacket(buildPacket):
"""!Create a packet"""
assert buildPacket is not ""
assert buildPacket != ""
def test_copyPacket(buildPacket):
"""!Copy a packet to an new instance"""
bwCopyPacket = Packet(buildPacket.__str__())
assert bwCopyPacket is not ""
assert bwCopyPacket != ""
def test_getPacketString(buildPacket):
"""!get the intern packet dict as string"""
assert type(buildPacket.__str__()) is str
assert buildPacket.__str__() is not ""
assert buildPacket.__str__() != ""
def test_getNotSetField(buildPacket):
@ -57,4 +57,4 @@ def test_getNotSetField(buildPacket):
def test_setGetField(buildPacket):
"""!set and get a field"""
buildPacket.set("testField", "test")
assert buildPacket.get("testField") is "test"
assert buildPacket.get("testField") == "test"