mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 03:54:21 +01:00
compare test_types plugin test output as strings
Since we're using StringIO (and equivalent in DummyIO), we can just use strings here.
This commit is contained in:
parent
910a1b93f5
commit
7e150481b6
1 changed files with 3 additions and 3 deletions
|
|
@ -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'}
|
||||
|
|
|
|||
Loading…
Reference in a new issue