]> git.ipfire.org Git - pakfire.git/blame - tests/module-load.py
Add simple testsuite.
[pakfire.git] / tests / module-load.py
CommitLineData
db5396bb
MT
1#!/usr/bin/python
2
3import os
4import sys
5
6# Try to load the _pakfire module.
7import pakfire
8
9# Check that we didn't load the system's version.
10topdir = os.environ.get("topdir")
11
12if not pakfire.__file__.startswith(topdir):
13 print "Wrong module loaded..."
14 sys.exit(1)