Fix Python 3 Test Issues
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This commit is contained in:
parent
abfd566c5b
commit
86a8b69233
2 changed files with 5 additions and 5 deletions
|
@ -91,4 +91,4 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
}])
|
}])
|
||||||
|
|
||||||
result = fg.rss_str()
|
result = fg.rss_str()
|
||||||
assert 'domain="http://www.somedomain.com/category"' in result
|
assert b'domain="http://www.somedomain.com/category"' in result
|
||||||
|
|
|
@ -120,7 +120,7 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
def test_atomFeedFile(self):
|
def test_atomFeedFile(self):
|
||||||
fg = self.fg
|
fg = self.fg
|
||||||
filename = 'tmp_Atomfeed.xml'
|
filename = 'tmp_Atomfeed.xml'
|
||||||
fg.atom_file(filename=filename, pretty=True)
|
fg.atom_file(filename=filename, pretty=True, xml_declaration=False)
|
||||||
|
|
||||||
with open (filename, "r") as myfile:
|
with open (filename, "r") as myfile:
|
||||||
atomString=myfile.read().replace('\n', '')
|
atomString=myfile.read().replace('\n', '')
|
||||||
|
@ -130,7 +130,7 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
def test_atomFeedString(self):
|
def test_atomFeedString(self):
|
||||||
fg = self.fg
|
fg = self.fg
|
||||||
|
|
||||||
atomString = fg.atom_str(pretty=True)
|
atomString = fg.atom_str(pretty=True, xml_declaration=False)
|
||||||
self.checkAtomString(atomString)
|
self.checkAtomString(atomString)
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
def test_rssFeedFile(self):
|
def test_rssFeedFile(self):
|
||||||
fg = self.fg
|
fg = self.fg
|
||||||
filename = 'tmp_Rssfeed.xml'
|
filename = 'tmp_Rssfeed.xml'
|
||||||
fg.rss_file(filename=filename, pretty=True)
|
fg.rss_file(filename=filename, pretty=True, xml_declaration=False)
|
||||||
|
|
||||||
with open (filename, "r") as myfile:
|
with open (filename, "r") as myfile:
|
||||||
rssString=myfile.read().replace('\n', '')
|
rssString=myfile.read().replace('\n', '')
|
||||||
|
@ -171,7 +171,7 @@ class TestSequenceFunctions(unittest.TestCase):
|
||||||
|
|
||||||
def test_rssFeedString(self):
|
def test_rssFeedString(self):
|
||||||
fg = self.fg
|
fg = self.fg
|
||||||
rssString = fg.rss_str(pretty=True)
|
rssString = fg.rss_str(pretty=True, xml_declaration=False)
|
||||||
self.checkRssString(rssString)
|
self.checkRssString(rssString)
|
||||||
|
|
||||||
def test_loadPodcastExtension(self):
|
def test_loadPodcastExtension(self):
|
||||||
|
|
Loading…
Reference in a new issue