def test_get_pkg_state_corrupt(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH_CORRUPT)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.pkg_state, PkgStates.NOT_FOUND)
    def test_get_pkg_state_not_installable(self):
        debfileapplication = DebFileApplication(DEBFILE_NOT_INSTALLABLE)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.pkg_state, PkgStates.ERROR)
 def test_get_pkg_state_not_found(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH_NOTFOUND)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.pkg_state, PkgStates.NOT_FOUND)
    def test_get_description(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.description, DEBFILE_DESCRIPTION)
    def test_get_pkg_state_uninstalled(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.pkg_state, PkgStates.UNINSTALLED)
 def test_get_installed_size_when_uninstalled(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.installed_size, 0)
示例#7
0
    def test_get_description(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.description, DEBFILE_DESCRIPTION)
示例#8
0
 def test_get_version(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.version, DEBFILE_VERSION)
示例#9
0
 def test_get_installed_size_when_uninstalled(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.installed_size, 0)
示例#10
0
 def test_get_pkg_state_corrupt(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH_CORRUPT)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.pkg_state, PkgStates.NOT_FOUND)
示例#11
0
 def test_get_summary(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.summary, DEBFILE_SUMMARY)
示例#12
0
 def test_get_pkg_state_not_found(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH_NOTFOUND)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.pkg_state, PkgStates.NOT_FOUND)
示例#13
0
    def test_get_pkg_state_not_installable(self):
        debfileapplication = DebFileApplication(DEBFILE_NOT_INSTALLABLE)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.pkg_state, PkgStates.ERROR)
示例#14
0
    def test_get_pkg_state_uninstalled(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.pkg_state, PkgStates.UNINSTALLED)
示例#15
0
 def test_get_summary(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.summary, DEBFILE_SUMMARY)
示例#16
0
 def test_get_warning(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.warning, DEBFILE_WARNING)
示例#17
0
 def test_get_version(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.version, DEBFILE_VERSION)
示例#18
0
    def test_get_name(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.name, DEBFILE_NAME)
示例#19
0
 def test_get_warning(self):
     debfileapplication = DebFileApplication(DEBFILE_PATH)
     debfiledetails = debfileapplication.get_details(self.db)
     self.assertEquals(debfiledetails.warning, DEBFILE_WARNING)
示例#20
0
    def test_get_name(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.name, DEBFILE_NAME)