From 08e7b5c6bc20d4dcf797d3c0ce16080734f1f033 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 28 Jun 2020 14:05:17 +0200 Subject: [PATCH] fix tests --- tests.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests.py b/tests.py index 13498876..b541662d 100644 --- a/tests.py +++ b/tests.py @@ -144,7 +144,7 @@ class GenericChannelTest(unittest.TestCase): self.assertTrue(mainlist, 'channel ' + self.ch + ' has no menu') for it in mainlist: - it.title = it.title.encode('ascii', 'ignore') + it.title = it.title.decode('ascii', 'ignore') if it.action == 'channel_config': hasChannelConfig = True continue @@ -156,10 +156,8 @@ class GenericChannelTest(unittest.TestCase): for content in chNumRis[self.ch]: if content in it.title: risNum = len(itemlist) - 1 # - nextpage - self.assertEqual(risNum, chNumRis[self.ch][content], - 'channel ' + self.ch + ' -> ' + it.title + ' returned ' + str( - risNum) + ' results but should have returned ' + str( - chNumRis[self.ch][content])) + self.assertEqual(chNumRis[self.ch][content], risNum, + 'channel ' + self.ch + ' -> ' + it.title + ' returned wrong number of results') break for resIt in itemlist: