1 from openid
.consumer
.discover
import OpenIDServiceEndpoint
4 class BadLinksTestCase(datadriven
.DataDrivenTestCase
):
7 "http://not.in.a.link.tag/",
8 '<link rel="openid.server" href="not.in.html.or.head" />',
11 def __init__(self
, data
):
12 datadriven
.DataDrivenTestCase
.__init
__(self
, data
)
16 actual
= OpenIDServiceEndpoint
.fromHTML('http://unused.url/', self
.data
)
18 self
.failUnlessEqual(expected
, actual
)
21 return datadriven
.loadTests(__name__
)