2006-09-05 17:03:16 +02:00
|
|
|
#!/usr/bin/env python2.4
|
|
|
|
|
2006-08-24 02:06:19 +02:00
|
|
|
import unittest
|
|
|
|
import cherrypy, os
|
|
|
|
import CryptoBox
|
|
|
|
import CryptoBoxWebserver
|
|
|
|
|
|
|
|
class TestCryptoBoxWebserver(unittest.TestCase):
|
|
|
|
cbw = CryptoBoxWebserver.CryptoBoxWebserver()
|
|
|
|
cherrypy.config.configMap.update(
|
|
|
|
{
|
|
|
|
"/cryptobox.css": {
|
|
|
|
"staticFilter.on" : True,
|
|
|
|
"staticFilter.file": os.path.abspath("../www-data/cryptobox.css" )
|
|
|
|
}
|
|
|
|
})
|
|
|
|
cbw.start()
|
|
|
|
|
|
|
|
def testConfigFile(self):
|
|
|
|
'''testConfigFile TODO'''
|
|
|
|
self.assertTrue(1)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|