'Asserts that the L{Deferred} passed in is erred back with an
L{UnauthorizedLogin} L{Failure}.  This reprsents an invalid login for
this TestCase.
NOTE: To work, this method\'s return value must be returned from the
test method, or otherwise hooked up to the test machinery.
@param d: a L{Deferred} from an L{IChecker.requestAvatarId} method.
@type d: L{Deferred}
@rtype: L{None}'

def assertUnauthorizedLogin(self, d):

    self.assertRaises(checkers.UnauthorizedLogin, self.assertLoggedIn, d, 'bogus    value')
