#NEWLINE# def test_init__bad_kwarg( self ) : #NEWLINE# #INDENT# with self . assertRaises ( TypeError ) as cm : #NEWLINE# #INDENT# _SampleJsonable ( bad = 3 , badder = 4 , bar = 5 ) #NEWLINE# #UNINDENT# err = cm . exception #NEWLINE# expected = "invalid keyword argument(s): 'bad', 'badder' (valid are: bar, fizz)" #NEWLINE# self . assertEqual ( str ( err ) , expected )