From 09f6261b4a4eb8981b0cb600401b1efc8ee8aef6 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Thu, 31 Mar 2016 13:26:06 -0400 Subject: [PATCH] Specify correct number of arguments for modified _visit_child_role() --- tests/test_updater.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_updater.py b/tests/test_updater.py index e1f3b934..dfc76317 100755 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -1327,18 +1327,18 @@ def test_10__visit_child_role(self): child_role = targets_role['delegations']['roles'][0] self.assertEqual(self.repository_updater._visit_child_role(child_role, - '/file3.txt'), child_role['name']) + '/file3.txt', targets_role['delegations']), child_role['name']) # Test path hash prefixes. child_role['path_hash_prefixes'] = ['8baf', '0000'] self.assertEqual(self.repository_updater._visit_child_role(child_role, - '/file3.txt'), child_role['name']) + '/file3.txt', targets_role['delegations']), child_role['name']) # Test if both 'path' and 'path_hash_prefixes' is missing. del child_role['paths'] del child_role['path_hash_prefixes'] self.assertRaises(tuf.FormatError, self.repository_updater._visit_child_role, - child_role, child_role['name']) + child_role, targets_role['delegations'], child_role['name'])