From afbd506cfc5aea6e70edc5cb6584e9d36f539965 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 1 Sep 2011 11:30:55 -0700 Subject: Users can retrieve their affiliations now, with tests. --- tests/test_stream_xep_0060.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tests/test_stream_xep_0060.py') diff --git a/tests/test_stream_xep_0060.py b/tests/test_stream_xep_0060.py index 1ace0f96..b90359f9 100644 --- a/tests/test_stream_xep_0060.py +++ b/tests/test_stream_xep_0060.py @@ -666,5 +666,32 @@ class TestStreamPubsub(SleekTest): """) + def testGetAffiliations(self): + """Test retrieving a users's affiliations.""" + self.xmpp['xep_0060'].get_affiliations( + 'pubsub.example.com', + block=False) + self.send(""" + + + + + + """) + + def testGetAffiliatinssForNode(self): + """Test retrieving a users's affiliations for a given node.""" + self.xmpp['xep_0060'].get_affiliations( + 'pubsub.example.com', + node='somenode', + block=False) + self.send(""" + + + + + + """) + suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamPubsub) -- cgit v1.2.3