#NEWLINE# def test_project_with_args( tmpdir ) : #NEWLINE# #INDENT# old_args = [ 'my_project' , '-u' , 'http://www.blue-yonder.com/' , '-d' , 'my description' ] #NEWLINE# cli . main ( old_args ) #NEWLINE# args = [ 'my_project' , '-u' , 'http://www.google.com/' , '-d' , 'other description' ] #NEWLINE# opts = cli . parse_args ( tmpdir ) #NEWLINE# new_opts = info . project ( opts ) #NEWLINE# assert ( new_opts [ 'url' ] == 'http://www.blue-yonder.com/' ) #NEWLINE# assert ( new_opts [ 'package' ] == 'my_project' ) #NEWLINE# assert ( new_opts [ 'description' ] == 'my description' )