Fixed bug aspect deletion, initial development for contacts
[diaspy.git] / tests.py
index 6e1184bdd705cf521d1694c3a2bd30edbb2a89ab..d3b16e4b696f137e1657e1016eeff9d3993af7c1 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -174,6 +174,14 @@ class UserTests(unittest.TestCase):
         self.assertEqual(type(user.stream), diaspy.streams.Outer)
 
 
+class ContactsTest(unittest.TestCase):
+    def testGetOnlySharing(self):
+        contacts = diaspy.people.Contacts(test_connection)
+        only_sharing = contacts.get_only_sharing()
+        for i in only_sharing:
+            self.assertEqual(diaspy.people.User, type(i))
+
+
 class PostTests(unittest.TestCase):
     def testStringConversion(self):
         s = diaspy.streams.Stream(test_connection)