#NEWLINE# def test_validate_on_invalid_masks( self ) : #NEWLINE# #INDENT# '\n        Test that a TypeError is raised when an invalid masks value is used to\n        construct a SecretData.\n        ' #NEWLINE# args = ( self . bytes_a , enums . SecretDataType . PASSWORD ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'masks' : 'invalid' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( TypeError , SecretData , * args , ** kwargs )