docstr: You cannot define methods out of the spec
docstr_tok: ["You","can","not","define","methods","out","of","the","spec"]
code: def test_integration_with_spec_method_definition_respects_spec(self):
      """You cannot define methods out of the spec"""
      m = mock.Mock(SampleObject)
  
      with self.assertRaises(AttributeError):
          m.method_sample3.return_value = 3
  
imports: import unittest
  from unittest import mock
label_desc: Use image node_id 15 for calling the TestSealable obj's underlying member method code with example usage: obj.test_integration_with_spec_method_definition_respects_spec() without return types