@@ -78,7 +78,7 @@ def setUpClass(cls):
78
78
})
79
79
""" )
80
80
assert resp is not None , resp
81
- assert type (resp ) == list , type (resp )
81
+ assert isinstance (resp , list ) , type (resp )
82
82
assert len (resp ) == 2 , len (resp )
83
83
assert resp [1 ] == 'created' , resp [1 ]
84
84
@@ -91,16 +91,16 @@ def setUpClass(cls):
91
91
})
92
92
""" )
93
93
assert resp is not None , resp
94
- assert type (resp ) == list , type (resp )
94
+ assert isinstance (resp , list ) , type (resp )
95
95
assert len (resp ) == 1 , len (resp )
96
- assert type (resp [0 ]) == dict , type (resp [ 0 ] )
96
+ assert isinstance (resp [0 ], dict ) , type (resp )
97
97
assert resp [0 ]['name' ] == 'primary_index' , resp [0 ]['name' ]
98
98
99
99
resp = cls .srv .admin ("box.space.tester:insert({1, null})" )
100
100
assert resp is not None , resp
101
- assert type (resp ) == list , type (resp )
101
+ assert isinstance (resp , list ) , type (resp )
102
102
assert len (resp ) == 1 , len (resp )
103
- assert type (resp [0 ]) == list , type (resp [0 ])
103
+ assert isinstance (resp [0 ], list ) , type (resp [0 ])
104
104
assert resp [0 ][0 ] == 1 , resp [0 ][0 ]
105
105
106
106
cls .con = tarantool .Connection (cls .srv .host , cls .srv .args ['primary' ],
0 commit comments