Add test case for scanning empty wav files.

This commit is contained in:
Tobias Sauerwein 2013-08-06 17:32:53 +02:00
parent 4756c639b1
commit 0a32d89bab
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -214,6 +214,10 @@ class ScannerTest(unittest.TestCase):
self.scan('scanner/example.log') self.scan('scanner/example.log')
self.assert_(self.errors) self.assert_(self.errors)
def test_empty_wav_file_is_ignored(self):
self.scan('scanner/empty.wav')
self.assert_(self.errors)
@unittest.SkipTest @unittest.SkipTest
def test_song_without_time_is_handeled(self): def test_song_without_time_is_handeled(self):
pass pass