Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)