'Source and binary distributions of Flocker are uploaded to S3.'

@skipUnless(hard_linking_possible(), 'Hard    linking    is    not    possible    in    the    current    directory.')
def test_distributions_uploaded(self):

    self.top_level.child('setup.py').setContent(dedent('\n                                                                from    setuptools    import    setup\n\n                                                                setup(\n                                                                                name="Flocker",\n                                                                                version="{package_version}",\n                                                                                py_modules=["Flocker"],\n                                                                )\n                                                                ').format(package_version='0.3.0'))
    self.upload_python_packages()
    aws_keys = self.aws.s3_buckets[self.target_bucket].keys()
    self.assertEqual(sorted(aws_keys), ['python/Flocker-0.3.0-py2-none-any.whl', 'python/Flocker-0.3.0.tar.gz'])
