Skip to content
Permalink
Browse files
fix more tests
  • Loading branch information
ralsina committed Jul 17, 2015
1 parent ac2fb93 commit 72083ce1d628b9b36c7d8a5663f056caedba1f0d
Showing with 6 additions and 5 deletions.
  1. +0 −2 tests/test_command_import_wordpress.py
  2. +6 −3 tests/test_rss_feeds.py
@@ -2,8 +2,6 @@
from __future__ import unicode_literals, absolute_import

import os
import sys


import unittest
import mock
@@ -91,9 +91,12 @@ def setUp(self):
# 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]
try:
file_content = [
call[1][0]
for call in opener_mock.mock_calls[2:-1]][0]
except IndexError:
import pdb; pdb.set_trace()
splitted_content = file_content.split('\n')
self.encoding_declaration = splitted_content[0]
content_without_encoding_declaration = splitted_content[1:]

0 comments on commit 72083ce

Please sign in to comment.