summaryrefslogtreecommitdiffstats
path: root/tests/test_authmanager.py
blob: 61798466450c8a0e8fc9682d108ccc0bcc6518e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from twisted.trial import unittest

import common

from deluge.core.authmanager import AuthManager

class AuthManagerTestCase(unittest.TestCase):
    def setUp(self):
        self.auth = AuthManager()
        self.auth.start()

    def test_authorize(self):
        from deluge.ui import common
        self.assertEquals(self.auth.authorize(*common.get_localhost_auth()), 10)