aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_rss_feeds.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rss_feeds.py')
-rw-r--r--tests/test_rss_feeds.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_rss_feeds.py b/tests/test_rss_feeds.py
index 992b1b7..f67ed40 100644
--- a/tests/test_rss_feeds.py
+++ b/tests/test_rss_feeds.py
@@ -91,9 +91,9 @@ class RSSFeedTest(unittest.TestCase):
# lxml will complain if the encoding is specified in the
# xml when running with unicode strings.
# We do not include this in our content.
- open_handle = opener_mock()
- file_content = [call[1][0]
- for call in open_handle.mock_calls[1:-1]][0]
+ file_content = [
+ call[1][0]
+ for call in opener_mock.mock_calls[2:-1]][0]
splitted_content = file_content.split('\n')
self.encoding_declaration = splitted_content[0]
content_without_encoding_declaration = splitted_content[1:]