blob: 82c0a3596396fcfe8b4c73646d67ae6278e87f12 [file] [log] [blame]
Alex Gaynor2e85a922018-07-16 11:18:33 -04001# 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
5from __future__ import absolute_import, division, print_function
6
7import pytest
8
9from ..utils import WycheproofTest, skip_if_wycheproof_none
10
11
12def test_wycheproof_test_repr():
13 wycheproof = WycheproofTest({}, {"tcId": 3})
14 assert repr(wycheproof) == "<WycheproofTest({}, {'tcId': 3}, tcId=3)>"
15
16
17def 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")