Exemplo n.º 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)
Exemplo n.º 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))
Exemplo n.º 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)