Esempio n. 1
0
class TestDistroUbuntu(unittest.TestCase):
    def setUp(self):
        self.distro = Ubuntu()

    def test_icon_download_url(self):
        mock_cache = MockCache("http://ppa.launchpad.net/mvo/ppa/ubuntu")
        pkgname = "pkg"
        iconname = "iconfilename"
        pkg_uri = mock_cache[pkgname].candidate.uri
        icon_url = self.distro.get_downloadable_icon_url(pkg_uri, iconname)
        self.assertEqual(icon_url,
                         "http://ppa.launchpad.net/mvo/meta/ppa/iconfilename")
Esempio n. 2
0
class TestDistroUbuntu(unittest.TestCase):

    def setUp(self):
        self.distro = Ubuntu()

    def test_icon_download_url(self):
        mock_cache = MockCache("http://ppa.launchpad.net/mvo/ppa/ubuntu")
        pkgname = "pkg"
        iconname = "iconfilename"
        pkg_uri = mock_cache[pkgname].candidate.uri
        icon_url = self.distro.get_downloadable_icon_url(pkg_uri, iconname)
        self.assertEqual(icon_url,
                         "http://ppa.launchpad.net/mvo/meta/ppa/iconfilename")
Esempio n. 3
0
 def setUp(self):
     self.distro = Ubuntu()
Esempio n. 4
0
 def setUp(self):
     import lsb_release
     self.distro = Ubuntu(lsb_release.get_distro_information())
Esempio n. 5
0
 def setUp(self):
     self.distro = Ubuntu()
 def setUp(self):
     import lsb_release
     self.distro = Ubuntu(lsb_release.get_distro_information())