getting file size for all dict files to be downloaded. coming to be 400mb or so.
[worddb.git] / libs / openid / test / test_htmldiscover.py
blob0a49e1637a3ffcd5ae7b64809f0205d8b48bfcf6
1 from openid.consumer.discover import OpenIDServiceEndpoint
2 import datadriven
4 class BadLinksTestCase(datadriven.DataDrivenTestCase):
5 cases = [
6 '',
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)
13 self.data = data
15 def runOneTest(self):
16 actual = OpenIDServiceEndpoint.fromHTML('http://unused.url/', self.data)
17 expected = []
18 self.failUnlessEqual(expected, actual)
20 def pyUnitTests():
21 return datadriven.loadTests(__name__)