def test_event_sending_no_cmd_list(self): list_commands(self.failobj) assert self.failobj.delegate.received == [NoCommandListEvent()]
def test_event_sending_success(self): list_commands(self.obj) assert self.obj.delegate.received == [CommandListEvent(self.expected)]