File: fsasserts.rst

package info (click to toggle)
testpath 0.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 200 kB
  • ctags: 131
  • sloc: python: 475; makefile: 156
file content (23 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Assertion functions for the filesystem
======================================

These functions make it easy to check the state of files and directories.
When the assertion is not true, they provide informative error messages.

.. module:: testpath

.. autofunction:: assert_path_exists

.. autofunction:: assert_not_path_exists

.. autofunction:: assert_isfile

.. autofunction:: assert_not_isfile

.. autofunction:: assert_isdir

.. autofunction:: assert_not_isdir

.. autofunction:: assert_islink

.. autofunction:: assert_not_islink