Example #1
0
 def test_raise_attribute_error_for_setstate(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__setstate__')
Example #2
0
 def test_raise_attribute_error_for_getnewargs(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__getnewargs__')
Example #3
0
 def test_raise_attribute_error_for_deepcopy(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__deepcopy__')
Example #4
0
 def test_raise_attribute_error_for_getstate(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy("Test", "__getstate__")
Example #5
0
 def test_raise_attribute_error_for_getnewargs(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__getnewargs__')
Example #6
0
 def test_raise_attribute_error_for_setstate(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__setstate__')
Example #7
0
 def test_raise_attribute_error_for_deepcopy(self):
     with self.assertRaises(AttributeError):
         utils.raise_attribute_for_copy('Test', '__deepcopy__')