| 1 |
operz |
1 |
#!/usr/bin/python2.6 |
| 2 |
|
|
|
| 3 |
|
|
import os |
| 4 |
|
|
import sys |
| 5 |
|
|
import unittest |
| 6 |
|
|
import mox |
| 7 |
|
|
import checkpkg_collect_stats as ccs |
| 8 |
|
|
|
| 9 |
|
|
# The following bit of code sets the correct path to Python libraries |
| 10 |
|
|
# distributed with GAR. |
| 11 |
|
|
path_list = [os.path.dirname(__file__), |
| 12 |
|
|
"..", "lib", "python"] |
| 13 |
|
|
sys.path.append(os.path.join(*path_list)) |
| 14 |
|
|
import opencsw |
| 15 |
|
|
|
| 16 |
|
|
|
| 17 |
|
|
class PackageStatsUnitTest(unittest.TestCase): |
| 18 |
|
|
|
| 19 |
|
|
def setUp(self): |
| 20 |
|
|
self.mocker = mox.Mox() |
| 21 |
|
|
|
| 22 |
|
|
|
| 23 |
|
|
if __name__ == '__main__': |
| 24 |
|
|
unittest.main() |