コード例 #1
0
ファイル: test_pymock.py プロジェクト: agilist/springmemo
	def testRecord(self):
		"""Ensure that getattribute returns the value"""
		action = GetAttributeAction('y', ('key',) , 'z')
		self.failUnless(action.record() == 'z')
コード例 #2
0
ファイル: test_pymock.py プロジェクト: agilist/springmemo
	def testRecordReturnsMockObject(self):
		"""Get attribute returns the default mock it is constructed with"""
		action = GetAttributeAction('y', ('key',) , 'z')
		self.failUnless(action.record() == 'z')