diff --git a/tests/test_extraneous_dependencies_attack.py b/tests/test_extraneous_dependencies_attack.py index 2ff98971..cece8f89 100755 --- a/tests/test_extraneous_dependencies_attack.py +++ b/tests/test_extraneous_dependencies_attack.py @@ -214,8 +214,8 @@ def test_with_tuf(self): try: self.repository_updater.targets_of_role('targets/role1') - # Verify that the specific 'tuf.BadHashError' exception is raised by each - # mirror. + # Verify that the specific 'tuf.ForbiddenTargetError' exception is raised + # by each mirror. except tuf.NoWorkingMirrorError as exception: for mirror_url, mirror_error in six.iteritems(exception.mirror_errors): url_prefix = self.repository_mirrors['mirror1']['url_prefix']