def test_comments(self): c_ = angel.get_comments('Startup', ANGELLIST_ID) self.assertEqual(type(c_), list) d_ = c_[0] expected_keys = sorted(['comment', 'created_at', 'id', 'user']) self.assertEqual(expected_keys, sorted(list(d_.iterkeys()))) self.assertEqual(type(d_['comment']), unicode) self.assertEqual(type(d_['created_at']), unicode) self.assertEqual(type(d_['id']), int) self.assertEqual(type(d_['user']), dict)
def test_comments(self): comments_ = angel.get_comments('Startup', KARMA_ID) self.assertEqual(type(comments_), list) self.assertEqual(type(comments_[0]), dict) self.assertTrue(len(comments_) > 6)