#NEWLINE# def test_fragments( self ) : #NEWLINE# #INDENT# url = 'git+https://example.com/package#egg=eggname' #NEWLINE# assert ( 'eggname' == Link ( url ) . egg_fragment ) #NEWLINE# assert ( None is Link ( url ) . subdirectory_fragment ) #NEWLINE# url = 'git+https://example.com/package#egg=eggname&subdirectory=subdir' #NEWLINE# assert ( 'eggname' == Link ( url ) . egg_fragment ) #NEWLINE# assert ( 'subdir' == Link ( url ) . subdirectory_fragment ) #NEWLINE# url = 'git+https://example.com/package#subdirectory=subdir&egg=eggname' #NEWLINE# assert ( 'eggname' == Link ( url ) . egg_fragment ) #NEWLINE# assert ( 'subdir' == Link ( url ) . subdirectory_fragment )