def test_get_lts_linux_metapackage(self):
     q = DistUpgradeQuirks(mock.Mock(), mock.Mock())
     mock_cache = set([
         make_mock_pkg(
             name="linux-image-3.13.0-24-generic",
             is_installed=True,
             candidate_rec={"Source": "linux-lts-quantal"},
         ),
     ])
     pkgname = q._get_linux_metapackage(mock_cache, headers=False)
     self.assertEqual(pkgname, "linux-generic-lts-quantal")
 def test_get_lowlatency_linux_metapackage(self):
     q = DistUpgradeQuirks(mock.Mock(), mock.Mock())
     mock_cache = set([
         make_mock_pkg(
             name="linux-image-4.2.0-16-lowlatency",
             is_installed=True,
             candidate_rec={"Source": "linux"},
         ),
     ])
     pkgname = q._get_linux_metapackage(mock_cache, headers=False)
     self.assertEqual(pkgname, "linux-lowlatency")