'Make sure dotted aliases and OpenID protocol fields are not
allowed as namespace aliases.'

def test_badAlias(self):

    for f in (message.OPENID_PROTOCOL_FIELDS + ['dotted.alias']):
        args = {('openid.ns.%s' % f): 'blah', ('openid.%s.foo' % f): 'test'}
        self.failUnlessRaises(AssertionError, self.msg.fromPostArgs, args)
