Back to index

apport  2.3
test_packaging.py
Go to the documentation of this file.
00001 import unittest
00002 
00003 import apport
00004 
00005 
00006 class T(unittest.TestCase):
00007     def test_get_uninstalled_package(self):
00008         '''get_uninstalled_package()'''
00009 
00010         p = apport.packaging.get_uninstalled_package()
00011         self.assertNotEqual(p, None)
00012         self.assertNotEqual(apport.packaging.get_available_version(p), '')
00013         self.assertRaises(ValueError, apport.packaging.get_version, p)
00014         self.assertTrue(apport.packaging.is_distro_package(p))
00015 
00016 unittest.main()