'When there is no delegate, the CanonicalID should be used with XRI.'

def test_useCanonicalID(self):

    endpoint = discover.OpenIDServiceEndpoint()
    endpoint.claimed_id = XRI('=!1000')
    endpoint.canonicalID = XRI('=!1000')
    self.failUnlessEqual(endpoint.getLocalID(), XRI('=!1000'))
