def test_valid_netcdf_no_unlimited(self): future = Future() new_value = not future.netcdf_no_unlimited future.netcdf_no_unlimited = new_value self.assertEqual(future.netcdf_no_unlimited, new_value)
def test_invalid_netcdf_no_unlimited(self): future = Future() exp_emsg = \ "'Future' property 'netcdf_no_unlimited' has been deprecated" with self.assertRaisesRegexp(AttributeError, exp_emsg): future.netcdf_no_unlimited = False
def test_netcdf_no_unlimited(self): future = Future() exp_emsg = "'Future' property 'netcdf_no_unlimited' is deprecated" with self.assertWarnsRegexp(exp_emsg): future.netcdf_no_unlimited = True