[tracker/tracker-0.10: 16/68] functional tests: minor whitespace changes in extractor tester
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10: 16/68] functional tests: minor whitespace changes in extractor tester
- Date: Thu, 28 Apr 2011 12:51:20 +0000 (UTC)
commit 28d4740e816eb3f937d4d82f2508e75d81756f71
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Apr 12 09:41:00 2011 +0200
functional tests: minor whitespace changes in extractor tester
tests/functional-tests/400-extractor.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/functional-tests/400-extractor.py b/tests/functional-tests/400-extractor.py
index f2babe5..5ac7655 100755
--- a/tests/functional-tests/400-extractor.py
+++ b/tests/functional-tests/400-extractor.py
@@ -33,7 +33,7 @@ import ConfigParser
class ExtractionTestCase (ut.TestCase):
"""
- Test checks if the tracker extractor is able to retrieve metadata
+ Test checks if the tracker extractor is able to retrieve metadata
"""
def __init__ (self, methodName='runTest', descfile=None):
"""
@@ -72,7 +72,7 @@ class ExtractionTestCase (ut.TestCase):
configParser = ConfigParser.RawConfigParser ()
# Make it case sensitive:
configParser.optionxform = str
-
+
abs_description = os.path.abspath (descfile)
loaded_files = configParser.read (abs_description)
if not abs_description in loaded_files:
@@ -90,7 +90,7 @@ class ExtractionTestCase (ut.TestCase):
return "'" + self.configParser.get ("TestFile", "Bugzilla") + "'"
else:
return None
-
+
def setUp (self):
@@ -119,7 +119,7 @@ class ExtractionTestCase (ut.TestCase):
self.fail ("%s in %s"
% (e, abs_description))
result = self.extractor.get_metadata ("file://" + self.file_to_extract, "")
-
+
self.__assert_extraction_ok (result)
@@ -138,7 +138,7 @@ class ExtractionTestCase (ut.TestCase):
except ValueError:
standardMsg = "'%s' is not a valid UUID" % (supposed_uuid)
self.fail (self._formatMessage (msg, standardMsg))
-
+
def __assert_extraction_ok (self, result):
self.__check_section ("Metadata", result)
@@ -211,7 +211,7 @@ class ExtractionTestCase (ut.TestCase):
self.rel_description,
section))
-
+
if __name__ == "__main__":
##
# Traverse the TEST_DATA_PATH directory looking for .description files
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]