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))
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))
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))