#NEWLINE# def test_format_label_bad_label( self ) : #NEWLINE# #INDENT# labels = [ 'K1=V1,K22.2.2.2' ] #NEWLINE# ex = self . assertRaises ( exc . CommandError , utils . format_labels , ex ) #NEWLINE# self . assertEqual ( 'labels must be a list of KEY=VALUE not K22.2.2.2' , str ( ex ) )