#NEWLINE# def test_table_permission( ) : #NEWLINE# #INDENT# client = mock . MagicMock ( ) #NEWLINE# table = models . Table ( table , 'sample_datasets' , 'nasdaq' , 'log' , 'schema' , 12345 ) #NEWLINE# client . database ( ) . permission = 'permission' #NEWLINE# assert ( table . permission == 'permission' ) #NEWLINE# client . database . assert_called_with ( 'sample_datasets' )