83aaf46c9feab529aeb9add871c05c3d1177afccaurium#!/usr/bin/env python
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico'''
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicoUnit test file for ../summersnight.py
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicoRevision history:
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico * 2012-01-28 (jazzynico): first working version (only checks the extension
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico with the default parameters).
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico--
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicoIf you want to help, read the python unittest documentation:
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicohttp://docs.python.org/library/unittest.html
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico'''
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
83aaf46c9feab529aeb9add871c05c3d1177afccauriumimport sys
83aaf46c9feab529aeb9add871c05c3d1177afccauriumimport unittest
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicosys.path.append('..') # this line allows to import the extension code
83aaf46c9feab529aeb9add871c05c3d1177afccauriumfrom summersnight import *
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNicoclass EnvelopeBasicTest(unittest.TestCase):
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico #def setUp(self):
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico def test_run_without_parameters(self):
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico args = ['minimal-blank.svg']
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico e = Project()
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico self.assertRaises(SystemExit, e.affect, args)
83aaf46c9feab529aeb9add871c05c3d1177afccaurium
83aaf46c9feab529aeb9add871c05c3d1177afccauriumif __name__ == '__main__':
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico unittest.main()
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico #suite = unittest.TestLoader().loadTestsFromTestCase(EnvelopeBasicTest)
16aa2c670becdbbc15bfcebe162d3306245bf111JazzyNico #unittest.TextTestRunner(verbosity=2).run(suite)