File: test_init.py

package info (click to toggle)
m2crypto 0.46.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,952 kB
  • sloc: python: 22,921; makefile: 213; ansic: 94; sh: 17
file content (21 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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")