Skip to content

Commit

Permalink
Merge pull request #6 from zertrin/master
Browse files Browse the repository at this point in the history
Fix test_views.py
  • Loading branch information
zertrin committed Nov 13, 2013
2 parents e4c3da4 + 810a599 commit 2f8a094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rezoirclogs/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_search(self):
parent = DummyObject()
parent.__name__ = ''
obj.__parent__ = parent
obj.__name__ = ''
obj.__name__ = 'dummy'
obj.date = ''
obj.search = lambda x, y: [(obj, 42, DummyObject())]
request = testing.DummyRequest()
Expand All @@ -94,7 +94,7 @@ def test_search(self):
response = search(obj, request)
self.assertEqual(len(response['results']), 1)
self.assertEqual(response['results'][0].anchorlink,
'http://example.com/#42')
'http://example.com/dummy/#42')
self.assertEqual(response['query'], 'lala')

def test_search_form_with_no_query(self):
Expand Down

0 comments on commit 2f8a094

Please sign in to comment.