def test_package_not_available_exception(self):
        aws = FakeAWS(
            routing_rules={},
            s3_buckets={
                self.target_bucket: {},
            },
        )

        exception = self.assertRaises(
            HTTPError,
            self.update_repo,
            aws=aws,
            yum=FakeYum(),
            package_directory=self.package_directory,
            target_bucket=self.target_bucket,
            target_key=self.target_key,
            source_repo=create_fake_repository(
                self, files={}),
            packages=self.packages,
            flocker_version='0.3.3.dev7',
            distribution=Distribution(name="centos", version="7"),
        )

        self.assertEqual(404, exception.response.status_code)
If a requested package is not available in the repository, a 404 error
dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_release.py/UpdateRepoTests.test_package_not_available_exception