# HG changeset patch # User Jeremy Thurgood # Date 1358677288 -7200 # Node ID 4d032d09d599428a7cc959fc6d2e58a70269717f # Parent b9504e6ecde145197b90bc6e3e124a7c3a54b86e Minor mad clicker improvement. diff -r b9504e6ecde1 -r 4d032d09d599 pyntnclick/tests/mad_clicker.py --- a/pyntnclick/tests/mad_clicker.py Wed Jan 16 13:58:02 2013 +0200 +++ b/pyntnclick/tests/mad_clicker.py Sun Jan 20 12:21:28 2013 +0200 @@ -14,14 +14,12 @@ def check_result(self, obj): """Check that the obj is the sort of result obj/seq we expect""" - # We do it this way, becuase we don't allow seqs to contain seqs - if obj and not hasattr(obj, 'process'): + # We do it this way, because we don't allow seqs to contain seqs + if not self.check_result_obj(obj): for subobj in obj: if not self.check_result_obj(subobj): return False - return True - else: - return self.check_result_obj(obj) + return True def _format_item(self, item): return "%s (%s)" % (item.name, item)