def test_unicode_text_lines_handles_weird_xml_encodings(self):
    test_file = self.get_test_loc('analysis/weird_encoding/easyconf-0.9.0.pom')
    result = list(unicode_text_lines(test_file))
    expected_file = self.get_test_loc('analysis/weird_encoding/easyconf-0.9.0.pom.expected')
    with open(expected_file, 'rb') as tf:
        expected = cPickle.load(tf)
    assert (expected == result)
def test_unicode_text_lines_handles_weird_xml_encodings(self):
    test_file = self.get_test_loc('analysis/weird_encoding/easyconf-0.9.0.pom')
    result = list(unicode_text_lines(test_file))
    expected_file = self.get_test_loc('analysis/weird_encoding/easyconf-0.9.0.pom.expected')
    with open(expected_file, 'rb') as tf:
        expected = cPickle.load(tf)
    assert (expected == result)