Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert most of the remaining tests to unit tests #19

Merged
merged 6 commits into from
Aug 2, 2014

Conversation

d0
Copy link
Contributor

@d0 d0 commented Aug 1, 2014

These patches move the remaining tests from utils.py as well as most of the commented out Security Environment tests to unit tests. The PBKDF2 tests are removed since, this is an external project that we just included verbatim in CryptoUtils.py
The tests have already revealed some strange/incosistent behaviour in the Security_Environment class but this will be fixed later, when there are enough unit tests to be confident that no functionality is broken by the changes. The tests have also uncovered one bug in the generate_public_key_pair method (incorrect usage of the bertlv_pack method), which is also fixed with this pull request.

d0 added 6 commits July 31, 2014 20:30
We currently include the PBKDF2 implementation from the PyCrypto author.
This patch removes some of the stuff we do not use and need. In the
future we should move to the PBKDF2 implementation that is nowadays included
in PyCrypto to clean up the code even more.
The SE API has changed so that all the old tests will need to be fixed.
This is the first step in this direction.
This patch fixes the remaining Security Environment test cases so that
they will at least run. This has already turned up some
strange/inconsistent behaviour in the Security_Environment class and at
least one bug (incorrect usage of the bertlv_pack function in the
generate_public_key_pair method).
frankmorgner pushed a commit that referenced this pull request Aug 2, 2014
Convert most of the remaining tests to unit tests
@frankmorgner frankmorgner merged commit 74d6f65 into frankmorgner:master Aug 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants