#NEWLINE# def test_what_provides_replaces( self ) : #NEWLINE# #INDENT# scikit_learn = P ( 'scikit_learn-0.12.0' ) #NEWLINE# sklearn = P ( 'sklearn-0.13.0; replaces (scikit_learn==0.12.0)' ) #NEWLINE# pool = Pool ( [ Repository ( [ scikit_learn , sklearn ] ) ] ) #NEWLINE# self . assertEqual ( set ( pool . what_provides ( R ( 'sklearn' ) ) ) , set ( [ sklearn ] ) ) #NEWLINE# self . assertEqual ( set ( pool . what_provides ( R ( 'scikit_learn' ) ) ) , set ( [ sklearn , scikit_learn ] ) )