summaryrefslogtreecommitdiff
path: root/testing/tests/server/test_session.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-02-15 01:53:01 +0100
committerKali Kaneko <kali@leap.se>2017-02-15 02:44:51 +0100
commit6d7dd39fb3d4f138595f885d19315008d13f8907 (patch)
tree97f361f7f66bd51f6d142878ad9a6952a06da544 /testing/tests/server/test_session.py
parent5c6fe9dc71d2e47f4698acf550b9fd16ce86637b (diff)
[tests] fix tests
Diffstat (limited to 'testing/tests/server/test_session.py')
-rw-r--r--testing/tests/server/test_session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/tests/server/test_session.py b/testing/tests/server/test_session.py
index 8131ddb3..b00ab858 100644
--- a/testing/tests/server/test_session.py
+++ b/testing/tests/server/test_session.py
@@ -156,6 +156,7 @@ class SoledadSessionTestCase(unittest.TestCase):
return {}
def decode(self, response, request):
+ print "decode raised"
raise UnexpectedException()
self.wrapper._credentialFactory = BadFactory()
@@ -164,7 +165,9 @@ class SoledadSessionTestCase(unittest.TestCase):
child = getChildForRequest(self.wrapper, request)
request.render(child)
self.assertEqual(request.responseCode, 500)
- self.assertEqual(len(self.flushLoggedErrors(UnexpectedException)), 1)
+ #self.assertEqual(len(self.flushLoggedErrors(UnexpectedException)), 1)
+ errors = self.flushLoggedErrors(UnexpectedException)
+ self.assertEqual(len(errors), 1)
def test_unexpectedLoginError(self):
class UnexpectedException(Exception):