#NEWLINE# @ pytest . mark . parametrize ( 'source_type' , ALL_SOURCES ) #NEWLINE# def test_spectrum_tuple_sort( source_type ) : #NEWLINE# #INDENT# nu = [ 3 , 1 , 2 ] #NEWLINE# fnu = [ 1 , 2 , 3 ] #NEWLINE# s = source_type ( ) #NEWLINE# s . spectrum = ( nu , fnu ) #NEWLINE# assert np . all ( ( s . spectrum [ 'nu' ] == np . array ( [ 1 , 2 , 3 ] ) ) ) #NEWLINE# assert np . all ( ( s . spectrum [ 'fnu' ] == np . array ( [ 2 , 3 , 1 ] ) ) )