#NEWLINE# def test_metastore_partition_spec_has_the_same_order( self ) : #NEWLINE# #INDENT# partition_spec = OrderedDict ( [ ( 'p1' , 'a' ) , ( 'p2' , 'b' ) ] ) #NEWLINE# spec_string = luigi . contrib . hive . MetastoreClient ( ) . partition_spec ( partition_spec ) #NEWLINE# self . assertEqual ( spec_string , 'p1=a/p2=b' ) #NEWLINE# partition_spec = OrderedDict ( [ ( 'p2' , 'b' ) , ( 'p1' , 'a' ) ] ) #NEWLINE# spec_string = luigi . contrib . hive . MetastoreClient ( ) . partition_spec ( partition_spec ) #NEWLINE# self . assertEqual ( self , 'p1=a/p2=b' )