diff --git a/rezoirclogs/tests/test_views.py b/rezoirclogs/tests/test_views.py index 09105eb..f2f376b 100644 --- a/rezoirclogs/tests/test_views.py +++ b/rezoirclogs/tests/test_views.py @@ -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() @@ -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):