def test_naming_default(self): self.failUnlessEqual(_name_for(''), __('New Playlist'))
def test_naming(self): self.failUnlessEqual(_name_for('/foo/bar.m3u'), 'bar') self.failUnlessEqual(_name_for('/foo/Will.I.Am.m3u'), 'Will.I.Am')