test_azure_fileshare_8.py 397 B

123456
  1. def test_check_for_file(self, mock_service):
  2. mock_instance = mock_service.return_value
  3. mock_instance.exists.return_value = True
  4. hook = AzureFileShareHook(azure_fileshare_conn_id='azure_fileshare_extras')
  5. assert hook.check_for_file('share', 'directory', 'file', timeout=3)
  6. mock_instance.exists.assert_called_once_with('share', 'directory', 'file', timeout=3)