From 948e3f1ef73355084ae614ee2a1579d6630b6d86 Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Mon, 5 Jan 2015 14:55:39 -0500 Subject: [PATCH] Changed 40x response test for unauthenticated playlist access --- tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.py b/tests/tests.py index 0157ae5..7fdea6b 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -118,7 +118,7 @@ class TestSpotipy(unittest.TestCase): def test_unauthenticated_post_fails(self): with self.assertRaises(SpotifyException) as cm: self.spotify.user_playlist_create("spotify", "Best hits of the 90s") - self.assertEqual(cm.exception.http_status, 401) + self.assertEqual(cm.exception.http_status, 403) def test_custom_requests_session(self): from requests import Session