changeset 746:4d032d09d599 pyntnclick

Minor mad clicker improvement.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 20 Jan 2013 12:21:28 +0200
parents b9504e6ecde1
children 960af9761fb0
files pyntnclick/tests/mad_clicker.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)