|
46 | 46 |
|
47 | 47 | defutil_exists(util): |
48 | 48 | defgood_properties(f): |
49 | | -# yapf: disable |
50 | 49 | return (os.path.exists(f)and |
51 | 50 | os.path.isfile(f)and |
52 | | -os.access(f,os.X_OK)) |
| 51 | +os.access(f,os.X_OK))# yapf: disable |
53 | 52 |
|
54 | 53 | # try to resolve it |
55 | 54 | ifgood_properties(get_bin_path(util)): |
@@ -118,9 +117,8 @@ def test_init_unique_system_id(self): |
118 | 117 | withget_new_node().init().start()asnode0: |
119 | 118 | id0=node0.execute(query)[0] |
120 | 119 |
|
121 | | -# yapf: disable |
122 | | -withscoped_config(cache_initdb=True, |
123 | | -cached_initdb_unique=True)asconfig: |
| 120 | +withscoped_config( |
| 121 | +cache_initdb=True,cached_initdb_unique=True)asconfig: |
124 | 122 |
|
125 | 123 | self.assertTrue(config.cache_initdb) |
126 | 124 | self.assertTrue(config.cached_initdb_unique) |
@@ -371,7 +369,8 @@ def test_backup_wrong_xlog_method(self): |
371 | 369 | withget_new_node()asnode: |
372 | 370 | node.init(allow_streaming=True).start() |
373 | 371 |
|
374 | | -withself.assertRaises(BackupException,msg='Invalid xlog_method "wrong"'): |
| 372 | +withself.assertRaises( |
| 373 | +BackupException,msg='Invalid xlog_method "wrong"'): |
375 | 374 | node.backup(xlog_method='wrong') |
376 | 375 |
|
377 | 376 | deftest_replicate(self): |
|