From 7e150481b6a56271a4f808034658d6be63eb4d83 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Mon, 11 Jul 2016 02:24:07 -0400 Subject: [PATCH] compare test_types plugin test output as strings Since we're using StringIO (and equivalent in DummyIO), we can just use strings here. --- test/test_types_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_types_plugin.py b/test/test_types_plugin.py index 6a3df8051..67e682844 100644 --- a/test/test_types_plugin.py +++ b/test/test_types_plugin.py @@ -48,7 +48,7 @@ class TypesPluginTest(unittest.TestCase, TestHelper): # Match in range out = self.list(u'myint:1..3') - self.assertIn(b'aaa', out) + self.assertIn('aaa', out) def test_album_integer_modify_and_query(self): self.config['types'] = {'myint': u'int'} @@ -64,7 +64,7 @@ class TypesPluginTest(unittest.TestCase, TestHelper): # Match in range out = self.list_album(u'myint:1..3') - self.assertIn(b'aaa', out) + self.assertIn('aaa', out) def test_float_modify_and_query(self): self.config['types'] = {'myfloat': u'float'} @@ -76,7 +76,7 @@ class TypesPluginTest(unittest.TestCase, TestHelper): # Match in range out = self.list(u'myfloat:-10..0') - self.assertIn(b'aaa', out) + self.assertIn('aaa', out) def test_bool_modify_and_query(self): self.config['types'] = {'mybool': u'bool'}