def test_creates_cloudfront_invalidation_devel_previous_version(self):
        aws = FakeAWS(
            routing_rules={
            },
            s3_buckets={
                'clusterhq-staging-docs': {
                    'index.html': '',
                    'en/index.html': '',
                    'en/devel/index.html': '',
                    'en/0.3.0/index.html': '',
                    'en/0.3.0/sub/index.html': '',
                    'release/flocker-0.3.0+444.gf05215b/index.html': '',
                    'release/flocker-0.3.0+444.gf05215b/sub/index.html': '',
                },
            })
        self.publish_docs(aws, '0.3.0+444.gf05215b', '0.3.1.dev1',
                          environment=Environments.STAGING)
        self.assertEqual(
            aws.cloudfront_invalidations, [
                CreateCloudFrontInvalidation(
                    cname='docs.staging.clusterhq.com',
                    paths={
                        'en/devel/',
                        'en/devel/index.html',
                        'en/devel/sub/index.html',
                        'en/devel/sub/',
                        'en/0.3.1.dev1/',
                        'en/0.3.1.dev1/index.html',
                        'en/0.3.1.dev1/sub/',
                        'en/0.3.1.dev1/sub/index.html',
                    }),
            ])
Calling :func:`publish_docs` with a development version creates an
dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_release.py/PublishDocsTests.test_creates_cloudfront_invalidation_devel_previous_version