#NEWLINE# def test_add_repository( self ) : #NEWLINE# #INDENT# 'Ensures we do not add the same package twice.' #NEWLINE# repo1 = Repository ( [ self . mkl_10_1_0 , self . mkl_10_2_0 ] ) #NEWLINE# pool = Pool ( ) #NEWLINE# pool . add_repository ( repo1 ) #NEWLINE# repo2 = Repository ( [ P ( str ( self . mkl_10_1_0 ) ) ] ) #NEWLINE# pool . add_repository ( repo2 ) #NEWLINE# self . assertEqual ( len ( pool . what_provides ( R ( 'mkl' ) ) ) , 3 )