old_contents: from django.test import TestCase
  
  class TestRepoHandlers(TestCase):
      def test_repo_registry(self):
          from package.handlers import get_repo, supported_repos
          g = get_repo("github")
          self.assertEqual(g.title, "Github")
          self.assertEqual(g.url, "https://github.com")
  
          self.assertTrue("github" in supported_repos())
  
new_contents: from django.test import TestCase
  
  class TestRepoHandlers(TestCase):
      def test_repo_registry(self):
          from package.handlers import get_repo, supported_repos
          g = get_repo("github")
          self.assertEqual(g.title, "Github")
          self.assertEqual(g.url, "https://github.com")
  
          self.assertTrue("github" in supported_repos())
  
          self.assertRaises(ImportError, lambda: get_repo("xyzzy"))
  
subject: Test what get_repo() does for unsupported repos