File: test_test.py

package info (click to toggle)
python-ihm 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,368 kB
  • sloc: python: 30,422; ansic: 5,990; sh: 24; makefile: 20
file content (20 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import utils
import os
import sys
import unittest
import subprocess

TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
utils.set_search_paths(TOPDIR)
import ihm.test  # noqa: F401   # Test should also be importable


class Tests(unittest.TestCase):
    def test_simple(self):
        """Exercise the ihm.test basic install test"""
        subprocess.check_call([sys.executable,
                               os.path.join(TOPDIR, 'ihm', 'test.py')])


if __name__ == '__main__':
    unittest.main()