#NEWLINE# def test_rpm_detect( ) : #NEWLINE# #INDENT# from rosdep2.platforms.redhat import rpm_detect #NEWLINE# m = Mock ( ) #NEWLINE# m . return_value = '' #NEWLINE# val = rpm_detect ( [ ] , exec_fn = m ) #NEWLINE# assert ( val == [ ] ) , val #NEWLINE# val = rpm_detect ( [ 'tinyxml-dev' ] , exec_fn = m ) #NEWLINE# assert ( val == [ ] ) , m