本文整理汇总了Python中ubuntutweak.common.package.PACKAGE_WORKER.is_old_kernel_package方法的典型用法代码示例。如果您正苦于以下问题:Python PACKAGE_WORKER.is_old_kernel_package方法的具体用法?Python PACKAGE_WORKER.is_old_kernel_package怎么用?Python PACKAGE_WORKER.is_old_kernel_package使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ubuntutweak.common.package.PACKAGE_WORKER
的用法示例。
在下文中一共展示了PACKAGE_WORKER.is_old_kernel_package方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_package
# 需要导入模块: from ubuntutweak.common.package import PACKAGE_WORKER [as 别名]
# 或者: from ubuntutweak.common.package.PACKAGE_WORKER import is_old_kernel_package [as 别名]
def test_package(self):
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('gedit'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('ubuntu-tweak'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-firmware'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-generic'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-image-generic'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-headers-2.6.37-020637'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-image-2.6.35-24-generic'))
self.assertFalse(PACKAGE_WORKER.is_old_kernel_package('linux-image-2.6.35-24'))
self.assertTrue(PACKAGE_WORKER.is_old_kernel_package('linux-image-2.6.34-24-generic'))