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



commit 18e6d5350d328248940bfaae933e2eb668a7a67b
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 734ae1e..cd144a7 100755
--- a/tests/functional-tests/500-writeback.py
+++ b/tests/functional-tests/500-writeback.py
@@ -113,7 +113,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
@@ -128,7 +128,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"
@@ -147,7 +147,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]