94
94
self._verify_result_checksums()
96
96
def test_patch_lowlevel(self):
98
98
from DistUpgrade.DistUpgradePatcher import patch, PatchError
99
99
self.assertRaises(PatchError, patch, CURDIR + "/patchdir/fail",
100
100
CURDIR + "/patchdir/patchdir_fail."
207
207
pkgname = q._get_linux_metapackage(mock_cache, headers=False)
208
208
self.assertEqual(pkgname, "linux-generic")
210
def test_get_lpae_linux_metapackage(self):
211
q = DistUpgradeQuirks(mock.Mock(), mock.Mock())
214
name="linux-image-4.2.0-16-generic-lpae",
216
candidate_rec={"Source": "linux"},
219
pkgname = q._get_linux_metapackage(mock_cache, headers=False)
220
self.assertEqual(pkgname, "linux-generic-lpae")
222
def test_get_lowlatency_linux_metapackage(self):
223
q = DistUpgradeQuirks(mock.Mock(), mock.Mock())
226
name="linux-image-4.2.0-16-lowlatency",
228
candidate_rec={"Source": "linux"},
231
pkgname = q._get_linux_metapackage(mock_cache, headers=False)
232
self.assertEqual(pkgname, "linux-lowlatency")
234
def test_get_lts_linux_metapackage(self):
235
q = DistUpgradeQuirks(mock.Mock(), mock.Mock())
238
name="linux-image-3.13.0-24-generic",
240
candidate_rec={"Source": "linux-lts-quantal"},
243
pkgname = q._get_linux_metapackage(mock_cache, headers=False)
244
self.assertEqual(pkgname, "linux-generic-lts-quantal")
211
247
if __name__ == "__main__":