forked from grantjenks/python-diskcache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_doctest.py
More file actions
39 lines (26 loc) · 782 Bytes
/
test_doctest.py
File metadata and controls
39 lines (26 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import doctest
import shutil
import sys
import diskcache.core
import diskcache.djangocache
import diskcache.fanout
import diskcache.persistent
import diskcache.recipes
def test_core():
failures, _ = doctest.testmod(diskcache.core)
assert failures == 0
def test_djangocache():
failures, _ = doctest.testmod(diskcache.djangocache)
assert failures == 0
def test_fanout():
failures, _ = doctest.testmod(diskcache.fanout)
assert failures == 0
def test_persistent():
failures, _ = doctest.testmod(diskcache.persistent)
assert failures == 0
def test_recipes():
failures, _ = doctest.testmod(diskcache.recipes)
assert failures == 0
def test_tutorial():
failures, _ = doctest.testfile('../docs/tutorial.rst')
assert failures == 0