Skip to content

Commit

Permalink
Close #12: test comment retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
rylans committed Jan 28, 2015
1 parent f3e63ce commit 388ba15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_hnapi.py
Expand Up @@ -22,6 +22,15 @@ def test_get_item_by(self):
byline = item.get('by')
self.assertEqual(byline, 'dhouston')

def test_get_comment(self):
"""
Test retrieval of a comment
"""
con = ApiConnector()
comment = con.get_item(15)
byline = comment.get('by')
self.assertEqual(byline, 'sama')

def test_get_max_item(self):
"""
Test retrieval of the max item without error
Expand Down

0 comments on commit 388ba15

Please sign in to comment.