Exemple #1
0
 def test_version_error_list(self):
     with test_chef_api(version='0.9.0'):
         with self.assertRaises(ChefAPIVersionError):
             Environment.list()
Exemple #2
0
 def test_version_error_init(self):
     with test_chef_api(version='0.9.0'):
         with self.assertRaises(ChefAPIVersionError):
             Environment(self.random())
 def test_version_error_init(self):
     with test_chef_api(version='0.9.0'):
         with self.assertRaises(ChefAPIVersionError):
             Environment(self.random())
 def test_version_error_list(self):
     with test_chef_api(version='0.9.0'):
         with self.assertRaises(ChefAPIVersionError):
             Environment.list()
 def test_version_error_create(self):
     with test_chef_api(version='0.9.0') as capi:
         with self.assertRaises(ChefAPIVersionError):
             Environment.create(self.random(), capi)