• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1% Regression tests for Scapy
2
3+Syntax check
4= Import the homepluggq layer
5
6from scapy.contrib.homeplugsg import *
7import binascii
8#from scapy.all import
9
10# HomePlugSG
11
12############
13############
14+ Basic tests
15
16* Those test are here mainly to check nothing has been broken
17
18= Some important manipulations
19~ field
20pkt=HomePlugAV(version=0x01)/VS_UART_CMD_REQ()
21pkt.UData = "AT+LOG?"
22assert raw(pkt) == b'\x01\x00\xa4\x00\x00\x00\x01AT+LOG?'
23