4cbe3831405916266493a3c62cd7f5af67f61749
[htsworkflow.git] / htsworkflow / util / test / test_api.py
1 import copy
2 import os
3 import unittest
4
5 from htsworkflow.util import api
6
7 class testApi(unittest.TestCase):
8     def test_make_key(self):
9         k1 = api.make_django_secret_key()
10         k2 = api.make_django_secret_key()
11
12         self.failUnless(len(k1), 85)
13         self.failUnless(len(k2), 85)
14         self.failUnless(k1 != k2)
15
16 def suite():
17     return unittest.makeSuite(testApi, 'test')
18
19 if __name__ == "__main__":
20     unittest.main(defaultTest='suite')