Permalink
Browse files

Fixed broken test, which based on objects having diffrent id

  • Loading branch information...
lqc committed Oct 1, 2010
1 parent 20b6334 commit 127612d660de47f1550f9377682c6c37f64d0af4
Showing with 3 additions and 3 deletions.
  1. +3 −3 class_based_views/tests/tests/base.py
@@ -26,9 +26,9 @@ def GET(self, request):
return self.render_to_response(context={})
-class HashView(View):
+class InstanceView(View):
def GET(self, request):
- return unicode(hash(self))
+ return self
class ViewTest(unittest.TestCase):
@@ -63,7 +63,7 @@ def test_calling_more_than_once(self):
Test a view can only be called once.
"""
request = self.rf.get('/')
- view = HashView()
+ view = InstanceView()
self.assertNotEqual(view(request), view(request))

0 comments on commit 127612d

Please sign in to comment.