docstr: You are not restricted when using mock with spec
docstr_tok: ["You","are","not","restricted","when","using","mock","with","spec"]
code: def test_integration_with_spec_att_definition(self):
      """You are not restricted when using mock with spec"""
      m = mock.Mock(SampleObject)
  
      m.attr_sample1 = 1
      m.attr_sample3 = 3
  
      mock.seal(m)
      self.assertEqual(m.attr_sample1, 1)
      self.assertEqual(m.attr_sample3, 3)
      with self.assertRaises(AttributeError):
          m.attr_sample2
  
imports: import unittest
  from unittest import mock
label_desc: Use image node_id 13 for calling the TestSealable obj's underlying member method code with example usage: obj.test_integration_with_spec_att_definition() without return types