From b5847e3e84f76a9659305580e9042d33af0fa870 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Sun, 2 Nov 2014 14:15:37 +1100 Subject: [PATCH] Added muting to test suite. I should have checked for this earlier, ah well, 'tis here now. Again, basically a copy of the blocking code updated for muting. Excellent target to test it on too. --- tests/test_endpoints.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/test_endpoints.py b/tests/test_endpoints.py index b7478d0..aa79998 100644 --- a/tests/test_endpoints.py +++ b/tests/test_endpoints.py @@ -305,6 +305,28 @@ class TwythonEndpointsTestCase(unittest.TestCase): we have not uploaded a profile banner""" self.assertRaises(TwythonError, self.api.get_profile_banner_sizes) + @unittest.skip('skipping non-updated test') + def test_list_mutes(self): + """Test listing users who are muted by the authenticated user + succeeds""" + self.api.list_mutes() + + @unittest.skip('skipping non-updated test') + def test_list_mute_ids(self): + """Test listing user ids who are muted by the authenticated user + succeeds""" + self.api.list_mute_ids() + + @unittest.skip('skipping non-updated test') + def test_create_mute(self): + """Test muting a user succeeds""" + self.api.create_mute(screen_name='justinbieber') + + @unittest.skip('skipping non-updated test') + def test_destroy_mute(self): + """Test muting a user succeeds""" + self.api.destroy_mute(screen_name='justinbieber') + # Suggested Users @unittest.skip('skipping non-updated test') def test_get_user_suggestions_by_slug(self):