# Path: axiom/test/test_userbase.py
# class IGarbage(Interface):
#     pass


from twisted.cred.portal import Portal, IRealm
from twisted.cred.checkers import ICredentialsChecker
from twisted.cred.credentials import UsernamePassword
from axiom.test.test_userbase import IGarbage
from axiom.test.historic import stubloader





SECRET = 'asdf'
SECRET2 = 'ghjk'

class AccountUpgradeTest(stubloader.StubbedTest):
    def testUpgrade(self):
        p = Portal(IRealm(self.store),
                   [ICredentialsChecker(self.store)])

        def loggedIn(args):
            (ifc, av, lgo) = args
            assert av.garbage == 7
            return av.store.whenFullyUpgraded()
        d = p.login(

# Path: axiom/test/test_userbase.py
# class IGarbage(Interface):
#     pass


# Path: axiom/test/historic/test_account1to2.py
from twisted.cred.portal import Portal, IRealm
from twisted.cred.checkers import ICredentialsChecker
from twisted.cred.credentials import UsernamePassword
from axiom.test.test_userbase import IGarbage
from axiom.test.historic import stubloader






SECRET = 'asdf'
SECRET2 = 'ghjk'

class AccountUpgradeTest(stubloader.StubbedTest):
    def testUpgrade(self):
        p = Portal(IRealm(self.store),
                   [ICredentialsChecker(self.store)])

        def loggedIn(args):
            (ifc, av, lgo) = args
            assert av.garbage == 7
            return av.store.whenFullyUpgraded()
        d = p.login(

            UsernamePassword('test@example.com', SECRET), None, IGarbage)