1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
from errbot.backends.test import TestOccupant, TestPerson
def test_identifier_eq():
a = TestPerson("foo")
b = TestPerson("foo")
assert a == b
def test_identifier_ineq():
a = TestPerson("foo")
b = TestPerson("bar")
assert not a == b
assert a != b
def test_mucidentifier_eq():
a = TestOccupant("foo", "room")
b = TestOccupant("foo", "room")
assert a == b
def test_mucidentifier_ineq1():
a = TestOccupant("foo", "room")
b = TestOccupant("bar", "room")
assert not a == b
assert a != b
def test_mucidentifier_ineq2():
a = TestOccupant("foo", "room1")
b = TestOccupant("foo", "room2")
assert not a == b
assert a != b
|