Example #1
0
 def test_linux_distro(self):
     system = platform.system()
     if system != "Linux":
         raise SkipTest("test is only for linux")
     distro = linux_distribution()
     self.assertEqual(len(distro), 2)
     self.assertNotIn("unknown", distro[0])
     self.assertNotIn("unknown", distro[1])
 def test_linux_distro(self):
     system = platform.system()
     if system != "Linux":
         raise SkipTest("test is only for linux")
     distro = linux_distribution()
     self.assertEqual(len(distro), 2)
     self.assertNotIn("unknown", distro[0])
     self.assertNotIn("unknown", distro[1])
Example #3
0
 def test_linux_distro(self):
     system = platform.system()
     if system != "Linux":
         raise SkipTest("test is only for linux")
     distro = linux_distribution()
     self.assertEqual(len(distro), 2)
     self.assertNotIn("unknown", distro[0])
     # Rolling distributions like Arch Linux (arch) does not have VERSION_ID
     if distro[0] not in ["arch", "gentoo", "antergos"]:
         self.assertNotIn("unknown", distro[1])
 def test_linux_distro(self):
     system = platform.system()
     if system != "Linux":
         raise SkipTest("test is only for linux")
     distro = linux_distribution()
     self.assertEqual(len(distro), 2)
     self.assertNotIn("unknown", distro[0])
     # Rolling distributions like Arch Linux (arch) does not have VERSION_ID
     if distro[0] != "arch":
         self.assertNotIn("unknown", distro[1])