# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1232022334 -3600 # Node ID e894eec21a1b24ad066e0061ab1a969c3ed4dabf # Parent e96662444ec69d666ec69ca15ea23db25487d46e move selection of entity types to test in a method to ease overriding diff -r e96662444ec6 -r e894eec21a1b devtools/testlib.py --- a/devtools/testlib.py Thu Jan 15 11:25:29 2009 +0100 +++ b/devtools/testlib.py Thu Jan 15 13:25:34 2009 +0100 @@ -259,10 +259,13 @@ msg+= '\nfor output:\n%s' % output raise AssertionError, msg, tcbk - + + def to_test_etypes(self): + return unprotected_entities(self.schema, strict=True) + def iter_automatic_rsets(self): """generates basic resultsets for each entity type""" - etypes = unprotected_entities(self.schema, strict=True) + etypes = self.to_test_etypes() for etype in etypes: yield self.execute('Any X WHERE X is %s' % etype)