Merge "Corrected a number of style violations in the tests."
This commit is contained in:
@@ -160,7 +160,6 @@ class TestObjectReplicator(unittest.TestCase):
|
||||
self.replicator.logger = FakeLogger()
|
||||
|
||||
def tearDown(self):
|
||||
process_errors = []
|
||||
rmtree(self.testdir, ignore_errors=1)
|
||||
|
||||
def test_run_once(self):
|
||||
@@ -183,7 +182,7 @@ class TestObjectReplicator(unittest.TestCase):
|
||||
whole_path_from = os.path.join(self.objects, cur_part, data_dir)
|
||||
process_arg_checker = []
|
||||
nodes = [node for node in
|
||||
self.ring.get_part_nodes(int(cur_part)) \
|
||||
self.ring.get_part_nodes(int(cur_part))
|
||||
if node['ip'] not in _ips()]
|
||||
for node in nodes:
|
||||
rsync_mod = '%s::object/sda/objects/%s' % (node['ip'], cur_part)
|
||||
@@ -332,7 +331,7 @@ class TestObjectReplicator(unittest.TestCase):
|
||||
whole_path_from = os.path.join(self.objects, cur_part, data_dir)
|
||||
process_arg_checker = []
|
||||
nodes = [node for node in
|
||||
self.ring.get_part_nodes(int(cur_part)) \
|
||||
self.ring.get_part_nodes(int(cur_part))
|
||||
if node['ip'] not in _ips()]
|
||||
for node in nodes:
|
||||
rsync_mod = '%s::object/sda/objects/%s' % (node['ip'],
|
||||
@@ -396,7 +395,7 @@ class TestObjectReplicator(unittest.TestCase):
|
||||
whole_path_from = os.path.join(self.objects, cur_part, data_dir)
|
||||
process_arg_checker = []
|
||||
nodes = [node for node in
|
||||
self.ring.get_part_nodes(int(cur_part)) \
|
||||
self.ring.get_part_nodes(int(cur_part))
|
||||
if node['ip'] not in _ips()]
|
||||
for node in nodes:
|
||||
rsync_mod = '%s::object/sda/objects/%s' % (node['ip'],
|
||||
|
||||
Reference in New Issue
Block a user