[tracker/tracker-0.10] tests/functional-tests: update writeback test to new extractors output



commit 1e204950f1684820e38a3d25e4c8c6f1acc9d775
Author: Ivan Frade <ivan frade gmail com>
Date:   Mon Sep 19 17:09:29 2011 +0300

    tests/functional-tests: update writeback test to new extractors output

 tests/functional-tests/500-writeback.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/functional-tests/500-writeback.py b/tests/functional-tests/500-writeback.py
index e141610..99916c0 100755
--- a/tests/functional-tests/500-writeback.py
+++ b/tests/functional-tests/500-writeback.py
@@ -118,7 +118,7 @@ class WritebackBasicDataTest (CommonTrackerWritebackTest):
         time.sleep (REASONABLE_TIMEOUT)
 
         results = self.extractor.get_metadata (filename, mimetype)
-        self.assertIn ("testTag", results ["nao:hasTag:prefLabel"])
+        self.assertIn ("testTag", results ["nao:hasTag"])
 
 
     # JPEG test
@@ -133,7 +133,7 @@ class WritebackBasicDataTest (CommonTrackerWritebackTest):
     def test_003_jpeg_keyword (self):
         #FILENAME = "test-writeback-monitored/writeback-test-1.jpeg"
         self.__writeback_test (self.get_test_filename_jpeg (), "image/jpeg",
-                               "nie:keyword", "nao:hasTag:prefLabel")
+                               "nie:keyword", "nao:hasTag")
 
     def test_004_jpeg_hasTag (self):
         #FILENAME = "test-writeback-monitored/writeback-test-1.jpeg"
@@ -152,7 +152,7 @@ class WritebackBasicDataTest (CommonTrackerWritebackTest):
     def test_013_tiff_keyword (self):
         FILENAME = "test-writeback-monitored/writeback-test-2.tif"
         self.__writeback_test (self.get_test_filename_tiff (), "image/tiff",
-                               "nie:keyword", "nao:hasTag:prefLabel")
+                               "nie:keyword", "nao:hasTag")
 
     def test_014_tiff_hasTag (self):
         FILENAME = "test-writeback-monitored/writeback-test-2.tif"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]