File: simple_identifiers_test.py

package info (click to toggle)
errbot 6.1.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,712 kB
  • sloc: python: 13,831; makefile: 164; sh: 97
file content (34 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (4)
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