home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 July / maximum-cd-2011-07.iso / DiscContents / LibO_3.3.2_Win_x86_install_multi.exe / libreoffice1.cab / test_crypt.py < prev    next >
Encoding:
Python Source  |  2011-03-15  |  352 b   |  17 lines

  1. from test import test_support
  2. import unittest
  3. import crypt
  4.  
  5. class CryptTestCase(unittest.TestCase):
  6.  
  7.     def test_crypt(self):
  8.         c = crypt.crypt('mypassword', 'ab')
  9.         if test_support.verbose:
  10.             print 'Test encryption: ', c
  11.  
  12. def test_main():
  13.     test_support.run_unittest(CryptTestCase)
  14.  
  15. if __name__ == "__main__":
  16.     test_main()
  17.