@@ -234,7 +234,7 @@ def test_reload(self):
234
234
# check new value
235
235
cmm_new = node .execute ('show client_min_messages' )
236
236
assert ('debug1' == cmm_new [0 ][0 ].lower ())
237
- self . assertNotEqual (cmm_old , cmm_new )
237
+ assert (cmm_old != cmm_new )
238
238
239
239
def test_pg_ctl (self ):
240
240
with get_new_node () as node :
@@ -260,7 +260,7 @@ def test_status(self):
260
260
261
261
node .start ()
262
262
263
- self . assertNotEqual (node .pid , 0 )
263
+ assert (node .pid != 0 )
264
264
assert (node .status () == NodeStatus .Running )
265
265
266
266
node .stop ()
@@ -400,12 +400,12 @@ def test_backup_multiple(self):
400
400
401
401
with node .backup (xlog_method = 'fetch' ) as backup1 , \
402
402
node .backup (xlog_method = 'fetch' ) as backup2 :
403
- self . assertNotEqual (backup1 .base_dir , backup2 .base_dir )
403
+ assert (backup1 .base_dir != backup2 .base_dir )
404
404
405
405
with node .backup (xlog_method = 'fetch' ) as backup :
406
406
with backup .spawn_primary ('node1' , destroy = False ) as node1 , \
407
407
backup .spawn_primary ('node2' , destroy = False ) as node2 :
408
- self . assertNotEqual (node1 .base_dir , node2 .base_dir )
408
+ assert (node1 .base_dir != node2 .base_dir )
409
409
410
410
def test_backup_exhaust (self ):
411
411
with get_new_node () as node :
@@ -818,12 +818,12 @@ def test_pg_config(self):
818
818
c2 = get_pg_config ()
819
819
820
820
# check different instances after config change
821
- self . assertNotEqual (id (c1 ), id (c2 ))
821
+ assert (id (c1 ) != id (c2 ))
822
822
823
823
# check different instances
824
824
a = get_pg_config ()
825
825
b = get_pg_config ()
826
- self . assertNotEqual (id (a ), id (b ))
826
+ assert (id (a ) != id (b ))
827
827
828
828
def test_config_stack (self ):
829
829
# no such option
@@ -876,7 +876,7 @@ def test_auto_name(self):
876
876
assert (r .status ())
877
877
878
878
# check their names
879
- self . assertNotEqual (m .name , r .name )
879
+ assert (m .name != r .name )
880
880
assert ('testgres' in m .name )
881
881
assert ('testgres' in r .name )
882
882
@@ -1206,7 +1206,7 @@ def test_port_rereserve_during_node_start(self):
1206
1206
1207
1207
node2 .init ().start ()
1208
1208
1209
- self . assertNotEqual (node2 .port , node1 .port )
1209
+ assert (node2 .port != node1 .port )
1210
1210
assert (node2 ._should_free_port )
1211
1211
assert (__class__ .tagPortManagerProxy .sm_DummyPortCurrentUsage == 0 )
1212
1212
assert (__class__ .tagPortManagerProxy .sm_DummyPortTotalUsage == C_COUNT_OF_BAD_PORT_USAGE )
0 commit comments