cc-4232: changed bit formatter to give empty string when bitrate is set to 0

This commit is contained in:
Rudi Grinberg 2012-08-15 15:04:15 -04:00
parent 70747d380c
commit 7fe45a5bbc
4 changed files with 16 additions and 7 deletions

View file

@ -67,4 +67,9 @@ class TestMMP(unittest.TestCase):
self.assertTrue( mmp.sub_path(d1, f1) )
self.assertTrue( mmp.sub_path(d2, f1) )
def test_parse_int(self):
self.assertEqual( mmp.parse_int("123"), "123" )
self.assertEqual( mmp.parse_int("123asf"), "123" )
self.assertEqual( mmp.parse_int("asdf"), "" )
if __name__ == '__main__': unittest.main()