#NEWLINE# def test_multiple_groups( self ) : #NEWLINE# #INDENT# groups = ( [ 'one' , 'two' , 'three' ] , [ 'foo' , 'bar' , 'baz' ] , [ 'qux' , 'bad' , 'morebad' ] ) #NEWLINE# parsed = FakeParsedArgs ( foo = 'foo' , bar = 'bar' , baz = 'baz' ) #NEWLINE# utils . validate_mutually_exclusive ( self , * groups ) #NEWLINE# parsed = FakeParsedArgs ( foo = 'one' , bar = None , qux = 'three' ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# utils . validate_mutually_exclusive ( parsed , * groups )