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