summaryrefslogtreecommitdiff
path: root/tests/functional-tests/common/utils/minertest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional-tests/common/utils/minertest.py')
-rw-r--r--tests/functional-tests/common/utils/minertest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional-tests/common/utils/minertest.py b/tests/functional-tests/common/utils/minertest.py
index 7be1bd8b4..054090ed5 100644
--- a/tests/functional-tests/common/utils/minertest.py
+++ b/tests/functional-tests/common/utils/minertest.py
@@ -104,6 +104,15 @@ class CommonTrackerMinerTest (ut.TestCase):
}
""")
+ def _get_n_text_documents (self):
+ result = self.store.query ("""
+ SELECT COUNT(?u) WHERE {
+ ?u a nfo:TextDocument
+ }
+ """)
+ self.assertEquals (len (result), 1)
+ return int(result[0][0])
+
def _get_parent_urn (self, filepath):
result = self.store.query ("""
SELECT nfo:belongsToContainer(?u) WHERE {