示例#1
0
 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)
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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