File: test_init.py

package info (click to toggle)
m2crypto 0.42.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,788 kB
  • sloc: python: 9,087; makefile: 154; ansic: 77; sh: 5
file content (20 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

"""Unit tests for M2Crypto initialization.
"""
import M2Crypto
from tests import unittest

class InitTestCase(unittest.TestCase):

    def test_version_info(self):
        self.assertIs(type(()), type(M2Crypto.version_info))

def suite():
    return unittest.TestLoader().loadTestsFromTestCase(InitTestCase)


if __name__ == '__main__':
    Rand.load_file('randpool.dat', -1)
    unittest.TextTestRunner().run(suite())
    Rand.save_file('randpool.dat')