예제 #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)
예제 #2
0
파일: test_search.py 프로젝트: che2/exaile
 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))
예제 #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)