コード例 #1
0
ファイル: test_search.py プロジェクト: exaile/exaile
 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)