Exemple #1
0
	def testRecord(self):
		"""Ensure that getattribute returns the value"""
		action = GetAttributeAction('y', ('key',) , 'z')
		self.failUnless(action.record() == 'z')
Exemple #2
0
	def testRecordReturnsMockObject(self):
		"""Get attribute returns the default mock it is constructed with"""
		action = GetAttributeAction('y', ('key',) , 'z')
		self.failUnless(action.record() == 'z')