summaryrefslogtreecommitdiffstats
path: root/share/extensions/test/perspective.test.py
blob: a102975077f0b01f4026e5c68da691cb6bebc221 (plain)
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
#!/usr/bin/env python
'''
Unit test file for ../perspective.py
Revision history:
  * 2012-01-28 (jazzynico): first working version (only checks the extension
    with the default parameters).

--
If you want to help, read the python unittest documentation:
http://docs.python.org/library/unittest.html
'''

import sys
import unittest

sys.path.append('..') # this line allows to import the extension code
from perspective import *

class PerspectiveBasicTest(unittest.TestCase):

    #def setUp(self):

    def test_run_without_parameters(self):
        args = ['minimal-blank.svg']
        e = Project()
        self.assertRaises(SystemExit, e.affect, args)

if __name__ == '__main__':
    unittest.main()
    #suite = unittest.TestLoader().loadTestsFromTestCase(PerspectiveBasicTest)
    #unittest.TextTestRunner(verbosity=2).run(suite)