<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def expect(self):
        '''
        Add an expectation to this stub. Return the expectation.
        '''
        exp = Expectation(self)
        self._expectations.append(exp)
        return exp