]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - tests/testoids.py
Merge branch 'master' of https://github.com/vbwagner/ctypescrypto
[oss/ctypescrypto.git] / tests / testoids.py
index b3856225f7b51eb39d2c7b774829fa2e1854fea6..280e0cc1abc5eebeb2e577374ff6a73630612323 100644 (file)
@@ -45,32 +45,22 @@ class TestStandard(unittest.TestCase):
             o=Oid([2,5,3,4])
 
 class TestCustom(unittest.TestCase):
-    def testCreate(self):
-        d='1.2.643.100.3'
-        sn="SNILS"
-        long_name="Russian Pension security number"
+    def _no_testCreate(self):
+        d='1.2.643.9.100.99'
+        sn="CtypesCryptoTestOid"
+        long_name="Test Oid in CryptoCom namespace"
         o=create(d,sn,long_name)
         self.assertEqual(str(o),d)
         self.assertEqual(o.shortname(),sn)
         self.assertEqual(o.longname(),long_name)
     def testLookup(self):
-        d='1.2.643.100.3'
-        sn="SNILS"
-        long_name="Russian Pension security number"
+        d='1.2.643.9.100.99'
+        sn="CtypesCryptoTestOid"
+        long_name="Test Oid In CryptoCom Namespace"
         o=create(d,sn,long_name)
         x=Oid(sn)
         self.assertEqual(o,x)
-    def testCleanup(self):
-        d='1.2.643.100.9'
-        sn="SNILX"
-        long_name="Russian Pension security number"
-        o=create(d,sn,long_name)
-        self.assertEqual(str(o),'1.2.643.100.9')
-
-        cleanup()
-        with self.assertRaises(ValueError):
-            x=Oid(sn)
-    def testFromObj(self):
+    def _no_testFromObj(self):
         from ctypescrypto import libcrypto
         from ctypes import c_int, c_char_p, c_void_p
         libcrypto.OBJ_txt2obj.argtypes = (c_char_p, c_int)