def test_version_error_list(self): with test_chef_api(version='0.9.0'): with self.assertRaises(ChefAPIVersionError): Environment.list()