#NEWLINE# def test_boolstr_prop( self ) : #NEWLINE# #INDENT# faker = FakeResource ( fake_data ) #NEWLINE# self . assertTrue ( faker . enabled ) #NEWLINE# self . assertTrue ( faker [ 'enabled' ] ) #NEWLINE# faker . _attrs [ 'enabled' ] = False #NEWLINE# self . assertFalse ( faker . enabled ) #NEWLINE# self . assertFalse ( faker [ 'enabled' ] ) #NEWLINE# def set_invalid( ) : #NEWLINE# #INDENT# faker . enabled = 'INVALID' #NEWLINE# #UNINDENT# self . assertRaises ( ValueError , set_invalid )