Skip to content

Commit

Permalink
add cgit test
Browse files Browse the repository at this point in the history
  • Loading branch information
larryfox committed Mar 23, 2014
1 parent 092cb28 commit e67ef75
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,20 @@ def test_znc_http(self):
r.content
)

def test_cgit_http(self):
"""CGit web interface is displaying home page"""
r = requests.get('http://git.' + TEST_SERVER, verify=False)

# We should be redirected to https
self.assertEquals(r.history[0].status_code, 301)
self.assertEquals(r.url, 'https://git.' + TEST_SERVER + '/')

# 200 - We should be at the repository page
self.assertEquals(r.status_code, 200)
self.assertIn(
'git repository',
r.content
)

class IRCTests(unittest.TestCase):
def test_irc_auth(self):
Expand Down

0 comments on commit e67ef75

Please sign in to comment.