• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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")
22