| Conditions | 6 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import pytest |
||
| 6 | def test_from_byte_order(): |
||
| 7 | assert Mode.from_byteorder('little') == Mode.Little |
||
| 8 | assert Mode.from_byteorder('big') == Mode.Big |
||
| 9 | assert Mode.from_byteorder('native') == Mode.Native |
||
| 10 | assert Mode.from_byteorder('network') == Mode.Network |
||
| 11 | |||
| 12 | with pytest.raises(TypeError): |
||
| 13 | Mode.from_byteorder('random thing') |
||
| 14 |