fix shebang and a test

This commit is contained in:
Trent Palmer 2022-02-19 04:54:36 -08:00
parent aef867a9c6
commit fa0dbad076
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class TestRssTestCase(TestCase):
ep_guid, f"http://testserver/episode/{episode.pk}/{episode.slug}"
)
ep_enclosure = ep.find("enclosure")
self.assertEquals(ep_enclosure.keys(), ["length", "type", "url"])
self.assertEquals(list(ep_enclosure.keys()), ["length", "type", "url"])
self.assertEquals(ep_enclosure.attrib["length"], str(episode.mp3.size))
self.assertEquals(ep_enclosure.attrib["type"], "audio/mpeg")
self.assertEquals(ep_enclosure.attrib["url"], f"{MP3_URL}{episode.mp3}")

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""Django's command-line utility for administrative tasks."""
import os
import sys