def METHOD_NAME(self):
    version = self.subproject.versions.get(slug=LATEST)
    self.assertDictEqual(version.get_downloads(), {})
    version.has_pdf = True
    version.has_epub = True
    version.save()
    expected = {
        "epub": "//pip.readthedocs.io/_/downloads/subproject/en/latest/epub/",
        "pdf": "//pip.readthedocs.io/_/downloads/subproject/en/latest/pdf/",
    }
    self.assertDictEqual(version.get_downloads(), expected)