summaryrefslogtreecommitdiff
path: root/testing/tests/server/test_auth.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-02-01 18:16:43 -0200
committerKali Kaneko <kali@leap.se>2017-02-09 17:41:42 +0100
commit911695e59ab60d2abaef3013330a6d41283cc733 (patch)
tree612f46a718648378e45a01f825f2375eae65d781 /testing/tests/server/test_auth.py
parentb3e0af399b81b65d6665865d1e1b18aa589f5824 (diff)
[test] add tests for server auth session
Diffstat (limited to 'testing/tests/server/test_auth.py')
-rw-r--r--testing/tests/server/test_auth.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/testing/tests/server/test_auth.py b/testing/tests/server/test_auth.py
index 3ff738f2..0e6baba3 100644
--- a/testing/tests/server/test_auth.py
+++ b/testing/tests/server/test_auth.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# test_auth.py
-# Copyright (C) 2013 LEAP
+# Copyright (C) 2017 LEAP
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@ from twisted.cred.error import UnauthorizedLogin
from twisted.internet.defer import inlineCallbacks
from twisted.trial import unittest
from twisted.web.resource import IResource
+from twisted.web.test import test_httpauth
from leap.soledad.server.auth import SoledadRealm
from leap.soledad.server.auth import TokenChecker
@@ -80,9 +81,6 @@ class TokenCheckerTestCase(unittest.TestCase):
yield checker.requestAvatarId(creds)
-from twisted.web.test import test_httpauth
-
-
class TokenCredentialFactoryTestcase(
test_httpauth.RequestMixin, test_httpauth.BasicAuthTestsMixin,
unittest.TestCase):