-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
56 lines (50 loc) · 1.47 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
__author__ = 'radicalcakes'
import TCPHandler
#original data 72 12 B27B8732 007F12C0 00 00 3E 2A 01 20 4A 4A D8
test_json_obj = {
#hidden server sould do the conversion of originators and firstHopid
"originator": 2994439986,
"firstHop": 8327872,
"traceCount": 00,
"hopCount": 00,
"pti": 42,
"stat1":[
{
"tamper": False
},
{
"cleanMe": False
},
{
"alarm4": False
},
{
"alarm3": False
},
{
"alarm2": False
},
{
"primaryAlarm": True
}
],
"stat0": [
{
"reserved": False
},
{
"lowBattery": False
},
{
"caseTamper": True
},
{
"reset": False
}
],
"level": 74,
"margin": 74
}
#firsthopid: 01 88 7A 94
#originator: B2 88 3A 6C
packet = TCPHandler.Packet(test_json_obj)