| 1 | # SPDX-FileCopyrightText: 2017 Ole Martin Bjorndalen <[email protected]> |
| 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | |
| 5 | from pytest import raises |
| 6 | |
| 7 | from mido.messages.checks import check_time |
| 8 | |
| 9 | |
| 10 | def test_check_time(): |
| 11 | check_time(1) |
| 12 | check_time(1.5) |
| 13 | |
| 14 | with raises(TypeError): |
| 15 | check_time(None) |
| 16 | |
| 17 | with raises(TypeError): |
| 18 | check_time('abc') |
| 19 | |
| 20 | with raises(TypeError): |
| 21 | check_time(None) |
| 22 | |
| 23 | with raises(TypeError): |
| 24 | check_time('abc') |