+ def testGettingUserInfo(self):
+ client = diaspy.client.Client(__pod__, __username__, __passwd__)
+ info = client.get_user_info()
+ self.assertEqual(dict, type(info))
+
+ def testGettingStream(self):
+ client = diaspy.client.Client(__pod__, __username__, __passwd__)
+ stream = client.get_stream()
+ self.assertEqual(list, type(stream))
+ if stream: self.assertEqual(diaspy.models.Post, type(stream[0]))
+
+ def testGettingNotifications(self):
+ client = diaspy.client.Client(__pod__, __username__, __passwd__)
+ notifications = client.get_notifications()
+ self.assertEqual(list, type(notifications))
+ if notifications: self.assertEqual(dict, type(notifications[0]))
+