core.util.formatp: Add test case breaking it, trying to fix that. Argh.

This commit is contained in:
enkore 2013-08-04 14:44:28 +02:00
parent 3d796ce48e
commit aa740e8a4a

View File

@ -262,3 +262,7 @@ class FormatPTests(unittest.TestCase):
assert util.formatp("ALINA[{title} schnacke]KOMMAHER", title="") == "ALINAKOMMAHER"
assert util.formatp("grml[{title}]") == "grml"
assert util.formatp("[{t}]grml") == "grml"
def test_generic(self):
s = "{status} [{artist} / {album} / ]{title}[ {song_elapsed}/{song_length}]"
assert util.formatp(s, status="", title="Only For The Weak", song_elapsed="1:41", song_length="4:55") == "▷ Only For The Weal 1:41/4:55"