Lines Matching refs:TestStruct
98 TestStruct = cstruct.Struct("TestStruct", "B16si16AH",
102 t = TestStruct((2, nullstr, 12345, nullstr, 33210))
103 expected = ("TestStruct(byte1=2, string2=68656c6c6f0000000000000000000000,"
108 t = TestStruct((2, embeddednull, 12345, embeddednull, 33210))
109 expected = ("TestStruct(byte1=2, string2=68656c6c6f0076697369626c65313233,"
114 TestStruct = cstruct.Struct("TestStruct", "B16si16AH",
116 t = TestStruct()
122 self.assertEquals("\x00" * len(TestStruct), t.Pack())
125 TestStruct = cstruct.Struct("TestStruct", "=B16sIH",
131 t1 = TestStruct(byte1=1, string2=text, int3=0xFEDCBA98, word4=0x1234)
136 t1 = TestStruct(string2=text, word4=0x1234)
141 TestStruct = cstruct.Struct("TestStruct", "B16si16AH",
144 t = TestStruct((2, nullstr, 12345, nullstr, 33210))