We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2937755 commit 92835f0Copy full SHA for 92835f0
tests/test_io/test_io_equality.py
@@ -8,12 +8,12 @@
8
def test_equality():
9
"""Ensures that containers can be compared."""
10
assert IO(1) == IO(1)
11
- assert str(IO(1)) == '<IO: 1>'
12
- assert hash(IO(1))
+ assert str(IO(2)) == '<IO: 2>'
+ assert hash(IO((1, 2, 3)))
13
14
15
def test_nonequality():
16
"""Ensures that containers are not compared to regular values."""
17
assert IO(1) != 1
18
- assert IO(1) is not IO(1)
19
- assert IO(1) != IO(2)
+ assert IO(2) is not IO(2)
+ assert IO('a') != IO('b')
0 commit comments