def test_source_to_repodict_mirrorlist_v1(self): """Test creating a repodict with a mirrorlist""" repo = source_to_repodict(fakerepo_mirrorlist_v1()) self.assertEqual(repo[2]["mirrorlist"], fakerepo_mirrorlist_v1()["url"])
def test_source_to_repodict_metalink_v1(self): """Test creating a repodict with a metalink API v1""" repo = source_to_repodict(fakerepo_metalink_v1()) self.assertEqual(repo[2]["metalink"], fakerepo_metalink_v1()["url"])
def test_source_to_repodict_gpgkey_v1(self): """Test creating a repodict with a proxy API v1""" repo = source_to_repodict(fakerepo_gpgkey_v1()) self.assertEqual(repo[2]["gpgkey"][0], fakerepo_gpgkey_v1()["gpgkey_urls"][0])
def test_source_to_repodict_baseurl_v1(self): """Test creating a repodict with a baseurl API v1""" repo = source_to_repodict(fakerepo_baseurl_v1()) self.assertEqual(repo[1][0], fakerepo_baseurl_v1()["url"])
def test_source_to_repodict_proxy_v1(self): """Test creating a repodict with a proxy API v1""" repo = source_to_repodict(fakerepo_proxy_v1()) self.assertEqual(repo[2]["proxy"], fakerepo_proxy_v1()["proxy"])