[Commits] (twl) Reactivate unit tests
commits at osafoundation.org
commits at osafoundation.org
Mon Aug 23 12:42:51 PDT 2004
Commit by: twl
Modified files:
chandler/repository/query/tests/TestCompoundQueries.py 1.3 1.4
chandler/repository/query/tests/TestNotification.py 1.3 1.4
chandler/repository/query/tests/TestSimpleQueries.py 1.3 1.4
Log message:
Reactivate unit tests
Add method query testcase
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/repository/query/tests/TestCompoundQueries.py.diff?r1=text&tr1=1.3&r2=text&tr2=1.4
http://cvs.osafoundation.org/index.cgi/chandler/repository/query/tests/TestNotification.py.diff?r1=text&tr1=1.3&r2=text&tr2=1.4
http://cvs.osafoundation.org/index.cgi/chandler/repository/query/tests/TestSimpleQueries.py.diff?r1=text&tr1=1.3&r2=text&tr2=1.4
Index: chandler/repository/query/tests/TestCompoundQueries.py
diff -u chandler/repository/query/tests/TestCompoundQueries.py:1.3 chandler/repository/query/tests/TestCompoundQueries.py:1.4
--- chandler/repository/query/tests/TestCompoundQueries.py:1.3 Fri Aug 20 16:12:15 2004
+++ chandler/repository/query/tests/TestCompoundQueries.py Mon Aug 23 12:42:50 2004
@@ -1,6 +1,6 @@
-__revision__ = "$Revision: 1.3 $"
-__date__ = "$Date: 2004/08/20 23:12:15 $"
+__revision__ = "$Revision: 1.4 $"
+__date__ = "$Date: 2004/08/23 19:42:50 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -43,5 +43,4 @@
# profiler = hotshot.Profile('/tmp/TestItems.hotshot')
# profiler.run('unittest.main()')
# profiler.close()
-# unittest.main()
- pass
+ unittest.main()
Index: chandler/repository/query/tests/TestNotification.py
diff -u chandler/repository/query/tests/TestNotification.py:1.3 chandler/repository/query/tests/TestNotification.py:1.4
--- chandler/repository/query/tests/TestNotification.py:1.3 Fri Aug 20 16:12:15 2004
+++ chandler/repository/query/tests/TestNotification.py Mon Aug 23 12:42:50 2004
@@ -1,6 +1,6 @@
-__revision__ = "$Revision: 1.3 $"
-__date__ = "$Date: 2004/08/20 23:12:15 $"
+__revision__ = "$Revision: 1.4 $"
+__date__ = "$Date: 2004/08/23 19:42:50 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -56,5 +56,4 @@
# profiler = hotshot.Profile('/tmp/TestItems.hotshot')
# profiler.run('unittest.main()')
# profiler.close()
-# unittest.main()
- pass
+ unittest.main()
Index: chandler/repository/query/tests/TestSimpleQueries.py
diff -u chandler/repository/query/tests/TestSimpleQueries.py:1.3 chandler/repository/query/tests/TestSimpleQueries.py:1.4
--- chandler/repository/query/tests/TestSimpleQueries.py:1.3 Fri Aug 20 16:12:15 2004
+++ chandler/repository/query/tests/TestSimpleQueries.py Mon Aug 23 12:42:50 2004
@@ -1,6 +1,6 @@
-__revision__ = "$Revision: 1.3 $"
-__date__ = "$Date: 2004/08/20 23:12:15 $"
+__revision__ = "$Revision: 1.4 $"
+__date__ = "$Date: 2004/08/23 19:42:50 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -56,6 +56,11 @@
results = self._executeQuery(u'for i in "//Schema/Core/Kind" where contains(i.itsName,"arc") and not len(i.attributes) >= 4')
self._checkQuery(lambda i: not ('arc' in i.itsName and not len(i.attributes) >= 4), results)
+ def testMethodCallQuery(self):
+ """ """
+ results = self._executeQuery(u'for i in "//Schema/Core/Kind" where i.hasAttributeValue("superKinds")')
+ self._checkQuery(lambda i: not i.hasAttributeValue("superKinds"), results)
+
def testWithData(self):
""" Test a multiple item path traversal in the query predicate """
tools.timing.reset()
@@ -91,5 +96,4 @@
# profiler = hotshot.Profile('/tmp/TestItems.hotshot')
# profiler.run('unittest.main()')
# profiler.close()
-# unittest.main()
- pass
+ unittest.main()
More information about the Commits
mailing list