#NEWLINE# def test_filenaming( self ) : #NEWLINE# #INDENT# now = datetime . now ( ) #NEWLINE# filename = storytracker . create_archive_filename ( self . url , now ) #NEWLINE# ( url , then ) = storytracker . reverse_archive_filename ( filename ) #NEWLINE# self . assertEqual ( self . url , url ) #NEWLINE# self . assertEqual ( url , then ) #NEWLINE# with self . assertRaises ( storytracker . ArchiveFileNameError ) : #NEWLINE# #INDENT# storytracker . reverse_archive_filename ( 'foo.bar' )