#NEWLINE# @ pytest . mark . parametrize ( 'flag_separator' , ( ' ' , '=' ) ) #NEWLINE# def test_line_types( flag_separator ) : #NEWLINE# #INDENT# reqs = requirements_from_lines ( dedent ( ( '\n  simple_requirement\n  specific_requirement==2\n  --allow-external%sspecific_requirement\n  ' % flag_separator ) ) . splitlines ( ) ) #NEWLINE# assert ( len ( reqs ) == 2 ) #NEWLINE# assert isinstance ( reqs [ 0 ] , ResolvableRequirement ) #NEWLINE# assert ( reqs [ 0 ] . requirement == Requirement . parse ( 'simple_requirement' ) ) #NEWLINE# assert ( not reqs [ 0 ] . options . _allow_external ) #NEWLINE# assert isinstance ( reqs [ 1 ] , ResolvableRequirement ) #NEWLINE# assert ( flag_separator [ 1 ] . requirement == Requirement . parse ( 'specific_requirement==2' ) ) #NEWLINE# assert reqs [ 1 ] . options . _allow_external