Skip to content

Commit

Permalink
Don't use _checkServices in test_html1Fragment. Also, rename that to …
Browse files Browse the repository at this point in the history
…test_fragment.
  • Loading branch information
isagalaev committed Jul 29, 2014
1 parent 0ac4198 commit 49eb05b
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions openid/test/test_discover.py
Expand Up @@ -144,25 +144,11 @@ def test_html1(self):
display_identifier=url,
)

def test_html1Fragment(self):
"""Ensure that the Claimed Identifier does not have a fragment
if one is supplied in the User Input."""
def test_fragment(self):
url = 'http://unittest/openid.html'
expected_id = url
url += '#fragment'
id_url, services = discover.discover(url)
self.assertEqual(len(services), 1)
self.assertEqual(id_url, expected_id)

self._checkService(
services[0],
used_yadis=False,
types=['1.1'],
server_url="http://www.myopenid.com/server",
claimed_id=expected_id,
local_id='http://smoker.myopenid.com/',
display_identifier=expected_id,
)
id_url, services = discover.discover(url + '#fragment')
self.assertEqual(id_url, url)
self.assertEqual(services[0].claimed_id, url)

def test_html2(self):
url = 'http://unittest/openid2.html'
Expand Down

0 comments on commit 49eb05b

Please sign in to comment.