Beispiel #1
0
 def test_in_matcher_none(self):
     matcher = search._InMatcher('album', 'Foo', lambda x: x)
     self.str.track.set_tag_raw('album', None)
     self.assertFalse(matcher.match(self.str))
Beispiel #2
0
 def test_in_matcher_true(self):
     matcher = search._InMatcher('album', 'hello', lambda x: x)
     self.str.track.set_tag_raw('album', 'Foohelloworld')
     self.assertTrue(matcher.match(self.str))
Beispiel #3
0
 def test_in_matcher_error(self):
     matcher = search._InMatcher('album', 2, lambda x: x)
     self.str.track.set_tag_raw('album', 'Foohelloworld')
     self.assertFalse(matcher.match(self.str))