test_azure_fileshare_18.py 285 B

12345
  1. def test_create_share(self, mock_service):
  2. mock_instance = mock_service.return_value
  3. hook = AzureFileShareHook(azure_fileshare_conn_id='azure_fileshare_extras')
  4. hook.create_share('my_share')
  5. mock_instance.create_share.assert_called_once_with('my_share')