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

This reverts commit 340e5deb51c11c2dd3445cc1483b21c533d5bdef.
This commit is contained in:
Rudi Grinberg 2012-08-15 15:07:09 -04:00
parent a2dfcd6bc2
commit c58e2e7ff9
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()