Skip to content

Commit

Permalink
re-architect test to fix the code
Browse files Browse the repository at this point in the history
  • Loading branch information
glyphobet committed Mar 13, 2012
1 parent 5390d34 commit ecafae8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cases.py
Expand Up @@ -91,11 +91,11 @@ def test_join_with_literal_fails(self):
ri = self.RI('https://secure.pants.net/')
self.assertRaises(TypeError, ri.join, '/path/to/thing')

def test_join_no_scheme_with_scheme(self):
ri = self.RI('/nowhere')
result = ri.join(self.RI('gopher://'))
def test_join_scheme_with_path(self):
ri = self.RI('gopher://')
result = ri.join(self.RI('nowhere'))
self.assertEquals(result.scheme, 'gopher')
self.assertEquals(result.path, '/')
self.assertEquals(result.path, '/nowhere')

def test_join_no_hostname_with_hostname(self):
ri = self.RI('gopher://')
Expand Down

0 comments on commit ecafae8

Please sign in to comment.