예제 #1
0
 def testLookup(self):
     d='1.2.643.100.3'
     sn="SNILS"
     long_name="Russian Pension security number"
     o=create(d,sn,long_name)
     x=Oid(sn)
     self.assertEqual(o,x)
예제 #2
0
	def testLookup(self):
		d='1.2.643.100.3'
		sn="SNILS"
		long_name="Russian Pension security number"
		o=create(d,sn,long_name)
		x=Oid(sn)
		self.assertEqual(o,x)
예제 #3
0
 def testLookup(self):
     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)
예제 #4
0
	def testCleanup(self):
		d='1.2.643.100.3'
		sn="SNILS"
		long_name="Russian Pension security number"
		o=create(d,sn,long_name)
		cleanup()
		with self.assertRaises(ValueError):
			x=Oid(sn)
예제 #5
0
	def testCreate(self):
		d='1.2.643.100.3'
		sn="SNILS"
		long_name="Russian Pension security number"
		o=create(d,sn,long_name)
		self.assertEqual(str(o),d)
		self.assertEqual(o.shortname(),sn)
		self.assertEqual(o.longname(),long_name)
예제 #6
0
 def testCleanup(self):
     d='1.2.643.100.3'
     sn="SNILS"
     long_name="Russian Pension security number"
     o=create(d,sn,long_name)
     cleanup()
     with self.assertRaises(ValueError):
         x=Oid(sn)
예제 #7
0
 def testCreate(self):
     d='1.2.643.100.3'
     sn="SNILS"
     long_name="Russian Pension security number"
     o=create(d,sn,long_name)
     self.assertEqual(str(o),d)
     self.assertEqual(o.shortname(),sn)
     self.assertEqual(o.longname(),long_name)
예제 #8
0
 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)