@@ -131,7 +131,7 @@ def test_custom_init(self):
131
131
self .assertGreaterEqual (len (lines ), 6 )
132
132
133
133
# there should be no trust entries at all
134
- self . assertFalse (any ('trust' in s for s in lines ))
134
+ assert not (any ('trust' in s for s in lines ))
135
135
136
136
def test_double_init (self ):
137
137
with get_new_node ().init () as node :
@@ -190,7 +190,7 @@ def test_node_exit(self):
190
190
base_dir = node .base_dir
191
191
192
192
# should have been removed by default
193
- self . assertFalse (os .path .exists (base_dir ))
193
+ assert not (os .path .exists (base_dir ))
194
194
195
195
def test_double_start (self ):
196
196
with get_new_node ().init ().start () as node :
@@ -245,8 +245,8 @@ def test_pg_ctl(self):
245
245
246
246
def test_status (self ):
247
247
self .assertTrue (NodeStatus .Running )
248
- self . assertFalse (NodeStatus .Stopped )
249
- self . assertFalse (NodeStatus .Uninitialized )
248
+ assert not (NodeStatus .Stopped )
249
+ assert not (NodeStatus .Uninitialized )
250
250
251
251
# check statuses after each operation
252
252
with get_new_node () as node :
@@ -812,7 +812,7 @@ def test_pg_config(self):
812
812
# modify setting for this scope
813
813
with scoped_config (cache_pg_config = False ) as config :
814
814
# sanity check for value
815
- self . assertFalse (config .cache_pg_config )
815
+ assert not (config .cache_pg_config )
816
816
817
817
# save right after config change
818
818
c2 = get_pg_config ()
@@ -1077,7 +1077,7 @@ def test_the_same_port(self):
1077
1077
with get_new_node (port = node .port ) as node2 :
1078
1078
self .assertEqual (type (node2 .port ), int )
1079
1079
self .assertEqual (node2 .port , node .port )
1080
- self . assertFalse (node2 ._should_free_port )
1080
+ assert not (node2 ._should_free_port )
1081
1081
1082
1082
with pytest .raises (
1083
1083
expected_exception = StartNodeException ,
@@ -1247,7 +1247,7 @@ def test_port_conflict(self):
1247
1247
self .assertTrue (node2 ._should_free_port )
1248
1248
self .assertEqual (__class__ .tagPortManagerProxy .sm_DummyPortCurrentUsage , 1 )
1249
1249
self .assertEqual (__class__ .tagPortManagerProxy .sm_DummyPortTotalUsage , C_COUNT_OF_BAD_PORT_USAGE )
1250
- self . assertFalse (node2 .is_started )
1250
+ assert not (node2 .is_started )
1251
1251
1252
1252
# node2 must release our dummyPort (node1.port)
1253
1253
self .assertEqual (__class__ .tagPortManagerProxy .sm_DummyPortCurrentUsage , 0 )
0 commit comments