Skip to content

Commit

Permalink
TST: swap incorrect test names (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored and MartinThoma committed Apr 28, 2022
1 parent e7da61f commit f41a590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ def test_boolean_object_write():
def test_boolean_object_exception():
stream = BytesIO(b"False")
with pytest.raises(PdfReadError) as exc:
ArrayObject.readFromStream(stream, None)
assert exc.value.args[0] == "Could not read array"
BooleanObject.readFromStream(stream)
assert exc.value.args[0] == "Could not read Boolean object"


def test_array_object_exception():
stream = BytesIO(b"False")
with pytest.raises(PdfReadError) as exc:
BooleanObject.readFromStream(stream)
assert exc.value.args[0] == "Could not read Boolean object"
ArrayObject.readFromStream(stream, None)
assert exc.value.args[0] == "Could not read array"


def test_null_object_exception():
Expand Down

0 comments on commit f41a590

Please sign in to comment.