Browse Source

add test case that needs to be fixed... update copyright var

python2
John-Mark Gurney 6 years ago
parent
commit
f2a06f4c6c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      pasn1.py

+ 3
- 1
pasn1.py View File

@@ -12,7 +12,7 @@ MUST NOT be used. The shorted form of length encoding MUST be used.
A longer length encoding MUST be rejected.'''

__author__ = 'John-Mark Gurney'
__copyright__ = 'Copyright 2016 John-Mark Gurney. All rights reserved.'
__copyright__ = 'Copyright 2016-2019 John-Mark Gurney. All rights reserved.'
__license__ = '2-clause BSD license'

# Copyright 2016-2019, John-Mark Gurney
@@ -674,3 +674,5 @@ class TestCode(unittest.TestCase):
raise TypeError

self.assertEqual(dumps(5), dumps(Dummy(), default=deffun))
# XXX make subobjects work
self.assertEqual(dumps([5]), dumps([Dummy()], default=deffun))

Loading…
Cancel
Save