mirror of
https://github.com/markqvist/rnsh.git
synced 2025-08-09 15:12:32 -04:00
Got the new protocol working.
This commit is contained in:
parent
0ee305795f
commit
8edb4020b1
8 changed files with 876 additions and 887 deletions
|
@ -12,19 +12,6 @@ import re
|
|||
import os
|
||||
|
||||
|
||||
|
||||
def test_check_magic():
|
||||
magic = rnsh.rnsh._PROTOCOL_VERSION_0
|
||||
# magic for version 0 is generated, make sure it comes out as expected
|
||||
assert magic == 0xdeadbeef00000000
|
||||
# verify the checker thinks it's right
|
||||
assert rnsh.rnsh._protocol_check_magic(magic)
|
||||
# scramble the magic
|
||||
magic = magic | 0x00ffff0000000000
|
||||
# make sure it fails now
|
||||
assert not rnsh.rnsh._protocol_check_magic(magic)
|
||||
|
||||
|
||||
def test_version():
|
||||
# version = importlib.metadata.version(rnsh.__version__)
|
||||
assert rnsh.__version__ != "0.0.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue