File: test__readme.py

package info (click to toggle)
python-pyforge 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 432 kB
  • ctags: 976
  • sloc: python: 3,729; makefile: 15; sh: 14
file content (10 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
from .ut_utils import TestCase
import os
import doctest

class ReadmeTest(TestCase):
    def test__readme_file(self):
        readme_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "README.rst"))
        self.assertTrue(os.path.exists(readme_path))
        result = doctest.testfile(readme_path, module_relative=False)
        self.assertEquals(result.failed, 0, "%s tests failed!" % result.failed)