update unit tests

This commit is contained in:
Michael Barton 2011-05-13 02:41:37 +00:00
parent 77bf1ee356
commit dc213d9746

View File

@ -179,7 +179,7 @@ class TestObjectReplicator(unittest.TestCase):
self.ring.get_part_nodes(int(cur_part)) \ self.ring.get_part_nodes(int(cur_part)) \
if node['ip'] not in _ips()] if node['ip'] not in _ips()]
for node in nodes: for node in nodes:
rsync_mod = '%s::object/sda/objects/%s' % (node['ip'], cur_part) rsync_mod = '[%s]::object/sda/objects/%s' % (node['ip'], cur_part)
process_arg_checker.append( process_arg_checker.append(
(0, '', ['rsync', whole_path_from, rsync_mod])) (0, '', ['rsync', whole_path_from, rsync_mod]))
with _mock_process(process_arg_checker): with _mock_process(process_arg_checker):
@ -363,7 +363,7 @@ class TestObjectReplicator(unittest.TestCase):
self.ring.get_part_nodes(int(cur_part)) \ self.ring.get_part_nodes(int(cur_part)) \
if node['ip'] not in _ips()] if node['ip'] not in _ips()]
for node in nodes: for node in nodes:
rsync_mod = '%s::object/sda/objects/%s' % (node['ip'], cur_part) rsync_mod = '[%s]::object/sda/objects/%s' % (node['ip'], cur_part)
process_arg_checker.append( process_arg_checker.append(
(0, '', ['rsync', whole_path_from, rsync_mod])) (0, '', ['rsync', whole_path_from, rsync_mod]))
self.assertTrue(os.access(os.path.join(self.objects, self.assertTrue(os.access(os.path.join(self.objects,