Skip to content

Commit 5f439c6

Browse files
committed
nose2pytest test_uuid
1 parent 164753c commit 5f439c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_uuid.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ def test_uuid():
1111
Basic().insert1(dict(item=u, number=n))
1212
Basic().insert(zip(map(uuid.uuid1, range(20)), count()))
1313
number = (Basic() & {"item": u}).fetch1("number")
14-
assert_equal(number, n)
14+
assert number == n
1515
item = (Basic & {"number": n}).fetch1("item")
16-
assert_equal(u, item)
16+
assert u == item
1717

1818

1919
def test_string_uuid():
2020
"""test that only UUID objects are accepted when inserting UUID fields"""
2121
u, n = "00000000-0000-0000-0000-000000000000", 24601
2222
Basic().insert1(dict(item=u, number=n))
2323
k, m = (Basic & {"item": u}).fetch1("KEY", "number")
24-
assert_equal(m, n)
25-
assert_true(isinstance(k["item"], uuid.UUID))
24+
assert m == n
25+
assert isinstance(k["item"], uuid.UUID)
2626

2727

2828
@raises(DataJointError)
@@ -66,4 +66,4 @@ def test_uuid_dependencies():
6666
):
6767
Topic().add(word)
6868
Item.populate()
69-
assert_equal(Item().progress(), (0, len(Topic())))
69+
assert Item().progress() == (0, len(Topic()))

0 commit comments

Comments
 (0)