From 4a225ee291bea00366fa37ede1f1731bf1b4ada8 Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Thu, 10 Sep 2015 05:07:14 +0100 Subject: [PATCH] Allow a custom music section name to be provided when generating a response --- test/test_plexupdate.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_plexupdate.py b/test/test_plexupdate.py index 942d9185b..1699890f8 100644 --- a/test/test_plexupdate.py +++ b/test/test_plexupdate.py @@ -8,9 +8,12 @@ import responses class PlexUpdateTest(unittest.TestCase, TestHelper): - def add_response_get_music_section(self): + def add_response_get_music_section(self, section_name = 'Music'): """Create response for mocking the get_music_section function. """ + + escaped_section_name = section_name.replace('"', '\\"') + body = ( '' '' '