Exemple #1
0
 def test_exact_matcher_true(self):
     matcher = search._ExactMatcher('album', 'Foo', lambda x: x)
     self.str.track.set_tag_raw('album', 'Foo')
     assert matcher.match(self.str)
Exemple #2
0
 def test_exact_matcher_false(self):
     matcher = search._ExactMatcher('album', 'Foo', lambda x: x)
     self.str.track.set_tag_raw('album', 'FoO')
     self.assertFalse(matcher.match(self.str))
Exemple #3
0
 def test_exact_matcher_true(self):
     matcher = search._ExactMatcher('album', 'Foo', lambda x: x)
     self.str.track.set_tag_raw('album', 'Foo')
     assert matcher.match(self.str)