Lines Matching refs:TestStructA
23 TestStructA = cstruct.Struct("TestStructA", "=BI", "byte1 int2") variable
46 a1 = TestStructA((1, 2))
47 a2 = TestStructA((2, 3))
48 a3 = TestStructA((1, 2))
61 [TestStructA, TestStructB])
64 [TestStructA, Nested])
65 d = DoubleNested((TestStructA((1, 2)),
66 Nested((5, TestStructA((3, 4)), TestStructB((7, 8)), 9)),
69 expectedlen = (len(TestStructA) +
70 2 + len(TestStructA) + len(TestStructB) + 4 +
157 [TestStructA, TestStructB])
159 [TestStructA, Nested])
160 d = DoubleNested((TestStructA((1, 2)), Nested((5, TestStructA((3, 4)),
163 self.assertEqual(len(TestStructA), d.offset("nest2"))
164 self.assertEqual(len(TestStructA) + len(Nested), d.offset("byte3"))