예제 #1
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)
예제 #2
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)
예제 #3
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)
예제 #4
0
    def test_get_description(self):
        debfileapplication = DebFileApplication(DEBFILE_PATH)
        debfiledetails = debfileapplication.get_details(self.db)

        self.assertEquals(debfiledetails.description, DEBFILE_DESCRIPTION)
예제 #5
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)
예제 #6
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)
예제 #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)