def testDecode2(self):
     # Verify that decode returns the object
     der = DerObjectId()
     self.assertEqual(
         der, der.decode(b('\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x01\x01')))
 def testDecode1(self):
     # Empty sequence
     der = DerObjectId()
     der.decode(b('\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x01\x01'))
     self.assertEqual(der.value, '1.2.840.113549.1.1.1')