diff options
author | elie <elie> | 2013-08-03 17:51:40 +0000 |
---|---|---|
committer | elie <elie> | 2013-08-03 17:51:40 +0000 |
commit | efde364c4877bea024bc84b649bfece2032f1cc6 (patch) | |
tree | 688a36381520f4ec13b2300cf6ba1e6499a55afb /test | |
parent | 74274b3d62634695b2362d57a030dca907fbafdb (diff) | |
download | pyasn1-git-efde364c4877bea024bc84b649bfece2032f1cc6.tar.gz |
some more univ.ObjectIdentifier.prettyIn cases added
Diffstat (limited to 'test')
-rw-r--r-- | test/type/test_univ.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/type/test_univ.py b/test/type/test_univ.py index 3eedcf2..4c7027d 100644 --- a/test/type/test_univ.py +++ b/test/type/test_univ.py @@ -234,8 +234,12 @@ class ObjectIdentifier(unittest.TestCase): assert o.isPrefixOf((1,3,6)), 'isPrefixOf() fails' assert o.isPrefixOf((1,3,6,1)), 'isPrefixOf() fails' assert not o.isPrefixOf((1,3)), 'isPrefixOf() fails' - def testInput(self): + def testInput1(self): assert univ.ObjectIdentifier('1.3.6')==(1,3,6),'prettyIn() fails' + def testInput2(self): + assert univ.ObjectIdentifier((1,3,6))==(1,3,6),'prettyIn() fails' + def testInput3(self): + assert univ.ObjectIdentifier(univ.ObjectIdentifier('1.3') + (6,))==(1,3,6),'prettyIn() fails' def testTag(self): assert univ.ObjectIdentifier().getTagSet() == tag.TagSet( (), |