web/test/unittest_facet.py
branchstable
changeset 6433 95c40961df21
parent 6340 470d8e828fda
child 6435 71b2a3fe7ba1
equal deleted inserted replaced
6432:30bde2b7fea2 6433:95c40961df21
   117         f.add_rql_restrictions()
   117         f.add_rql_restrictions()
   118         # selection is cluttered because rqlst has been prepared for facet (it
   118         # selection is cluttered because rqlst has been prepared for facet (it
   119         # is not in real life)
   119         # is not in real life)
   120         self.assertEqual(f.rqlst.as_string(),
   120         self.assertEqual(f.rqlst.as_string(),
   121                           "DISTINCT Any  WHERE X is CWUser, X login 'admin'")
   121                           "DISTINCT Any  WHERE X is CWUser, X login 'admin'")
       
   122 
       
   123 
       
   124 if __name__ == '__main__':
       
   125     from logilab.common.testlib import unittest_main
       
   126     unittest_main()