def test_dnfver_old(self):
     system_upgrade.DNFVERSION = system_upgrade.StrictVersion("1.0.0")
     with self.assertRaises(CliError):
         system_upgrade.checkDNFVer()
 def test_dnfver_old(self):
     system_upgrade.DNFVERSION = system_upgrade.StrictVersion("1.0.0")
     with self.assertRaises(CliError):
         system_upgrade.checkDNFVer()
 def test_dnfver_ok(self):
     system_upgrade.DNFVERSION = system_upgrade.StrictVersion("1.1.0")
     self.assertEqual(system_upgrade.checkDNFVer(), None)
 def test_dnfver_ok(self):
     system_upgrade.DNFVERSION = system_upgrade.StrictVersion("1.1.0")
     self.assertEqual(system_upgrade.checkDNFVer(), None)