local: Remove redundant test asserts

This commit is contained in:
Stein Magnus Jodal 2013-10-19 22:17:04 +02:00
parent c850ed2698
commit 27a63b1688

View File

@ -160,8 +160,6 @@ class LocalLibraryProviderTest(unittest.TestCase):
# Matches on URI
result = self.library.find_exact(any=['local:track:path1'])
self.assertEqual(list(result[0].tracks), self.tracks[:1])
result = self.library.find_exact(any=['local:track:path1'])
self.assertEqual(list(result[0].tracks), self.tracks[:1])
def test_find_exact_wrong_type(self):
test = lambda: self.library.find_exact(wrong=['test'])
@ -267,8 +265,6 @@ class LocalLibraryProviderTest(unittest.TestCase):
# Matches on URI
result = self.library.search(any=['TH1'])
self.assertEqual(list(result[0].tracks), self.tracks[:1])
result = self.library.search(any=['TH1'])
self.assertEqual(list(result[0].tracks), self.tracks[:1])
def test_search_wrong_type(self):
test = lambda: self.library.search(wrong=['test'])