summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* __trunc__ is only available since python 2.6elie2014-06-151-2/+2
|
* * The abs(Integer()) & abs(Real()) operation now returns respective pyasn1elie2014-02-091-0/+25
| | | | | | | type, not a Python type. * More Python magic methods implementations added to Integer & Real classes (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__) * The Integer.__invert__ Python magic method implemented.
* Constructed types now verify their consistency by invokingelie2013-12-121-0/+16
| | | | | | | | isSameTypeWith(matchTags=True, matchConstraints=False) and isSuperTypeOf(matchTags=False, matchConstraints=True) for each of their components rather than isSuperTypeOf() as it used to be. Constriants check could be enforced to isSameTypeWith() with the strictConstraints=True constructed classes attribute.
* test coverage extended to cover pyasn1 types __repr__() functionelie2013-12-084-2/+43
|
* test cases for __repr__() improved for scalar typeselie2013-12-081-5/+17
|
* * constructed types can now be initialized with new .setComponents() methodelie2013-12-081-1/+7
| | | | | which accepts both var-args and keyword-args * default repr() modified to reflect this change
* * constructed types now always verify their consistensy withelie2013-12-071-41/+8
| | | | | | isSameTypeWith() rather then with isSuperTypeOf() * optional flags to setComponentByPosition(), introduced in previous revision, withdrawn as lame
* the setComponentBy*() methods of all CONSTRUCTED objects now accept optionalelie2013-12-021-1/+74
| | | | | exactTypes, matchTags and matchConstraints flags to give apps finer control on when not to perform relevant data consistency checks
* * some more fixes to OID codecselie2013-11-012-21/+169
| | | | | * explicit limit on ObjectIdentifier arc value size removed * some more tests in OID encoding problem areas added
* more fixes and tests for OID encoding from Brianelie2013-11-011-1/+32
|
* ObjectIdentifier codec fixed to work properly with arc 0 and arc 2 valueselie2013-10-312-6/+27
|
* - Float typed mantissa initializer to REAL type for base 2 added.elie2013-09-113-22/+68
| | | | | - Encoding bases 8 and 16 support for REAL type binary encoder added. - Fix to REAL type binary decoder to handle different bases and scale factor.
* fixes to REAL binary encoder test caseselie2013-09-011-2/+2
|
* fix to binary initializer support of Real objectelie2013-09-011-0/+1
|
* unicode initializer support added to OctetString type and derivativeselie2013-08-031-0/+6
|
* some more univ.ObjectIdentifier.prettyIn cases addedelie2013-08-031-1/+5
|
* fix to REAL type decoder to handle negative REAL values correctly. testelie2013-04-091-0/+6
| | | | case added.
* fix to import path manglingelie2013-02-153-3/+9
|
* test suite made discoverable by unittest/unittest2 discovery featureelie2013-02-1516-90/+136
|
* some more CHOICE codec test cases addedelie2013-01-281-3/+15
|
* some more testcases for CHOICE codec addedelie2013-01-281-1/+18
|
* fix to decoder to fail in cases where tagFormat indicates inappropriateelie2013-01-271-0/+47
| | | | | format for the type (e.g. BOOLEAN is always PRIMITIVE, SET is always CONSTRUCTED and OCTET STRING is either of the two)
* The compact (valueless) way of encoding zero INTEGERs introduced inrelease_0_1_6_tagelie2012-12-211-1/+7
| | | | | | | 0.1.5 seems to fail miserably as the world is filled with broken BER decoders. So we had to back off the *encoder* for a while. There's still the IntegerEncoder.supportCompactZero flag which enables compact encoding form whenever it evaluates to True.
* mangle modules paths for relative import to workrelease_0_1_5_tagelie2012-12-192-0/+9
|
* some more tests added to cover empty-valued INTEGER encodingelie2012-11-231-0/+2
|
* fix to INTEGER encoder to produce empty-valued encoding for zero valueselie2012-11-231-1/+4
|
* two more Boolean tests addedelie2012-11-231-0/+4
|
* fix to unit test suites imports to be able to run each fromelie2012-11-236-12/+30
| | | | their current directory
* support empty-payload REAL values decodingelie2012-11-231-0/+5
|
* * fix to Real codec exponent encoding (should be in 2's complement form)elie2012-07-182-1/+32
| | | | * some more test cases added
* comment added to prevent overzealous package managers from optimizingelie2012-07-046-0/+6
| | | | out empty files
* leading 0x80 octet not allowed in BER/CER/DER substrateelie2012-06-102-19/+13
|
* test cases added for substrateFun callbackelie2012-06-091-2/+75
|
* fix to leading 0x80 octet handling in CER/DER ObjectIdentifier decoderelie2012-05-272-0/+21
|
* more ObjectIdentifier tests addedelie2012-05-071-0/+15
|
* typoelie2012-05-071-1/+1
|
* better fix for negatively encoded Booleanselie2012-04-271-0/+2
|
* fix to ObjectIdentifier __str__ test caseelie2011-11-201-1/+1
|
* fix to OctetString.__str__() workings of a non-initialized objectelie2011-11-071-1/+9
|
* OctetString methods asOcts()asInts() renamed into asOctets()/asNumbers()elie2011-10-251-3/+3
|
* OctetString now supports two python-neutral getters: asOcts() & asInts()elie2011-10-191-0/+7
|
* python3 specifics removedelie2011-10-111-5/+0
|
* binary&hex OctetString syntax parser reworked, test case addedelie2011-10-101-1/+12
|
* + converted to py3k-compliant bytes/str base type and wrapperselie2011-10-047-189/+216
| | | | + literal substrate in test cases replaced with tuples of ints
* dropped explicit long int modifiers (py3k style)elie2011-10-022-5/+5
|
* implicit relative import replaced with the absolute one to avoid py3k syntaxelie2011-10-025-12/+12
|
* got rid of explicit long int type dependency (py3k style)elie2011-10-021-1/+1
|
* infinite values now suppoted by Real typeelie2011-03-152-0/+47
|
* indef mode, explicitly tagged item decoder test case improvedelie2011-03-121-9/+11
|
* Real type test cases implementedelie2011-03-111-0/+25
|