2019-04-05 21:27:16 +00:00
|
|
|
'''
|
|
|
|
run this with
|
|
|
|
python -m unittest -v Test
|
|
|
|
'''
|
|
|
|
import os
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
import CherryPyApp
|
|
|
|
|
|
|
|
class TestInstantiation(unittest.TestCase):
|
|
|
|
def setUp(self):
|
2019-04-20 18:34:53 +00:00
|
|
|
CherryPyApp.CHERRYPY_CONFIG = os.path.join(
|
|
|
|
os.path.dirname(os.path.abspath (__file__)),
|
|
|
|
'test.conf'
|
|
|
|
)
|
2019-04-05 21:27:16 +00:00
|
|
|
|
|
|
|
def test_main(self):
|
|
|
|
CherryPyApp.main()
|