docstr: You need to define the methods, even if they are in the spec
docstr_tok: ["You","need","to","define","the","methods",",","even","if","they","are","in","the","spec"]
code: def test_integration_with_spec_method_definition(self):
      """You need to define the methods, even if they are in the spec"""
      m = mock.Mock(SampleObject)
  
      m.method_sample1.return_value = 1
  
      mock.seal(m)
      self.assertEqual(m.method_sample1(), 1)
      with self.assertRaises(AttributeError):
          m.method_sample2()
  
imports: import unittest
  from unittest import mock
label_desc: Use image node_id 14 for calling the TestSealable obj's underlying member method code with example usage: obj.test_integration_with_spec_method_definition() without return types