Skip to content

Commit

Permalink
Add a test for the keyBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
benallard committed Sep 19, 2011
1 parent 0ed3735 commit ddab8d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/testKeyBuilder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest

from pythoncard.security import KeyBuilder

class testKeyBuilder(unittest.TestCase):

def testLength(self):
key = KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC, KeyBuilder.LENGTH_RSA_768, False)
self.assertEquals(768, key.getSize())

0 comments on commit ddab8d1

Please sign in to comment.