Alex Gaynor | 2e85a92 | 2018-07-16 11:18:33 -0400 | [diff] [blame] | 1 | # This file is dual licensed under the terms of the Apache License, Version |
| 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository |
| 3 | # for complete details. |
| 4 | |
| 5 | from __future__ import absolute_import, division, print_function |
| 6 | |
| 7 | import pytest |
| 8 | |
| 9 | from ..utils import WycheproofTest, skip_if_wycheproof_none |
| 10 | |
| 11 | |
| 12 | def test_wycheproof_test_repr(): |
| 13 | wycheproof = WycheproofTest({}, {"tcId": 3}) |
| 14 | assert repr(wycheproof) == "<WycheproofTest({}, {'tcId': 3}, tcId=3)>" |
| 15 | |
| 16 | |
| 17 | def test_skip_if_wycheproof_none(): |
| 18 | with pytest.raises(pytest.skip.Exception): |
| 19 | skip_if_wycheproof_none(None) |
| 20 | |
| 21 | skip_if_wycheproof_none("abc") |