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)