File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,18 @@ def test_uuid():
11
11
Basic ().insert1 (dict (item = u , number = n ))
12
12
Basic ().insert (zip (map (uuid .uuid1 , range (20 )), count ()))
13
13
number = (Basic () & {"item" : u }).fetch1 ("number" )
14
- assert_equal ( number , n )
14
+ assert number == n
15
15
item = (Basic & {"number" : n }).fetch1 ("item" )
16
- assert_equal ( u , item )
16
+ assert u == item
17
17
18
18
19
19
def test_string_uuid ():
20
20
"""test that only UUID objects are accepted when inserting UUID fields"""
21
21
u , n = "00000000-0000-0000-0000-000000000000" , 24601
22
22
Basic ().insert1 (dict (item = u , number = n ))
23
23
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 )
26
26
27
27
28
28
@raises (DataJointError )
@@ -66,4 +66,4 @@ def test_uuid_dependencies():
66
66
):
67
67
Topic ().add (word )
68
68
Item .populate ()
69
- assert_equal ( Item ().progress (), (0 , len (Topic () )))
69
+ assert Item ().progress () == (0 , len (Topic ()))
You can’t perform that action at this time.
0 commit comments