'Calling :func:`publish_docs` in production creates an invalidation for
``flocker-docs.clusterhq.com``.'

def test_creates_cloudfront_invalidation_production(self):

    aws = FakeAWS(routing_rules={}, s3_buckets={'clusterhq-flocker-docs': {'index.html': '', 'en/index.html': '', 'en/latest/index.html': '', 'en/0.3.1/index.html': '', 'en/0.3.1/sub/index.html': ''}, 'clusterhq-staging-docs': {}})
    self.publish_docs(aws, '0.3.1', '0.3.1', environment=Environments.PRODUCTION)
    self.assertEqual(aws.cloudfront_invalidations, [CreateCloudFrontInvalidation(cname='flocker-docs.clusterhq.com', paths={'en/latest/', 'en/latest/index.html', 'en/latest/sub/', 'en/latest/sub/index.html', 'en/0.3.1/', 'en/0.3.1/index.html', 'en/0.3.1/sub/', 'en/0.3.1/sub/index.html'})])
