Ejemplo n.º 1
0
 def test_operating_system(self):
     for s in ['WINDOWS', 'AMAZON_LINUX', 'UBUNTU',
               'REDHAT_ENTERPRISE_LINUX']:
         operating_system(s)
     for s in ['', 'bar', 'AMAZONLINUX', 'LINUX']:
         with self.assertRaises(ValueError):
             operating_system(s)
Ejemplo n.º 2
0
 def test_operating_system(self):
     for s in ['WINDOWS', 'AMAZON_LINUX', 'UBUNTU',
               'REDHAT_ENTERPRISE_LINUX']:
         operating_system(s)
     for s in ['', 'bar', 'AMAZONLINUX', 'LINUX']:
         with self.assertRaises(ValueError):
             operating_system(s)
 def test_operating_system(self):
     for s in [
             "WINDOWS", "AMAZON_LINUX", "UBUNTU", "REDHAT_ENTERPRISE_LINUX"
     ]:
         operating_system(s)
     for s in ["", "bar", "AMAZONLINUX", "LINUX"]:
         with self.assertRaises(ValueError):
             operating_system(s)