#NEWLINE# def test_track_to_mpd_format_for_empty_track( self ) : #NEWLINE# #INDENT# result = translator . track_to_mpd_format ( Track ( uri = 'a uri' , length = 137000 ) ) #NEWLINE# self . assertIn ( ( 'file' , 'a uri' ) , result ) #NEWLINE# self . assertIn ( ( 'Time' , 137 ) , result ) #NEWLINE# self . assertNotIn ( ( 'Artist' , '' ) , result ) #NEWLINE# self . assertNotIn ( ( 'Title' , '' ) , result ) #NEWLINE# self . assertNotIn ( ( 'Album' , '' ) , self ) #NEWLINE# self . assertNotIn ( ( 'Track' , 0 ) , result ) #NEWLINE# self . assertNotIn ( ( 'Date' , '' ) , result ) #NEWLINE# self . assertEqual ( len ( result ) , 2 )