Commit 7c0f593b authored by Hanno Schlichting's avatar Hanno Schlichting

Let's not indent with five spaces, please

parent 351988f6
...@@ -881,7 +881,6 @@ class TestCatalogReport(unittest.TestCase): ...@@ -881,7 +881,6 @@ class TestCatalogReport(unittest.TestCase):
def test_ReportLength(self): def test_ReportLength(self):
""" tests the report aggregation """ """ tests the report aggregation """
self.zcat.manage_resetCatalogReport() self.zcat.manage_resetCatalogReport()
self.zcat.searchResults(title='4 or 5 or 6',sort_on='num') self.zcat.searchResults(title='4 or 5 or 6',sort_on='num')
...@@ -890,18 +889,14 @@ class TestCatalogReport(unittest.TestCase): ...@@ -890,18 +889,14 @@ class TestCatalogReport(unittest.TestCase):
self.zcat.searchResults(big=True,sort_on='num') self.zcat.searchResults(big=True,sort_on='num')
self.zcat.searchResults(big=True,sort_on='num') self.zcat.searchResults(big=True,sort_on='num')
self.zcat.searchResults(big=False,sort_on='num') self.zcat.searchResults(big=False,sort_on='num')
self.zcat.searchResults(num=[5,4,3],sort_on='num') self.zcat.searchResults(num=[5,4,3],sort_on='num')
self.zcat.searchResults(num=(3,4,5),sort_on='num') self.zcat.searchResults(num=(3,4,5),sort_on='num')
self.assertEqual(4, len(self.zcat.getCatalogReport())) self.assertEqual(4, len(self.zcat.getCatalogReport()))
def test_ReportCounter(self): def test_ReportCounter(self):
""" tests the counter of equal queries """ """ tests the counter of equal queries """
self.zcat.manage_resetCatalogReport() self.zcat.manage_resetCatalogReport()
self.zcat.searchResults(title='4 or 5 or 6',sort_on='num') self.zcat.searchResults(title='4 or 5 or 6',sort_on='num')
...@@ -909,13 +904,10 @@ class TestCatalogReport(unittest.TestCase): ...@@ -909,13 +904,10 @@ class TestCatalogReport(unittest.TestCase):
self.zcat.searchResults(title='3 or 8 or 9',sort_on='num') self.zcat.searchResults(title='3 or 8 or 9',sort_on='num')
r = self.zcat.getCatalogReport()[0] r = self.zcat.getCatalogReport()[0]
self.assertEqual(r['counter'],3) self.assertEqual(r['counter'],3)
def test_ReportKey(self): def test_ReportKey(self):
""" tests the query keys for uniqueness """ """ tests the query keys for uniqueness """
# query key 1 # query key 1
key = ('sort_on', ('big', 'True')) key = ('sort_on', ('big', 'True'))
self.zcat.manage_resetCatalogReport() self.zcat.manage_resetCatalogReport()
...@@ -935,7 +927,7 @@ class TestCatalogReport(unittest.TestCase): ...@@ -935,7 +927,7 @@ class TestCatalogReport(unittest.TestCase):
r = self.zcat.getCatalogReport()[0] r = self.zcat.getCatalogReport()[0]
self.assertEqual(r['query'],key) self.assertEqual(r['query'],key)
self.assertEqual(r['counter'],1) self.assertEqual(r['counter'], 1)
# query key 3 # query key 3
key = ('sort_on', ('num', '[3, 4, 5]')) key = ('sort_on', ('num', '[3, 4, 5]'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment