def get_calls(mock_observer_func):
 return [call_tuple[0][0].name for call_tuple in mock_observer_func.calls]

def get_calls ( mock_observer_func ) : return [ call_tuple [ 0 ] [ 0 ] . name for call_tuple in mock_observer_func . calls ]
given a mock ipluginobserver method .