Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 11 of 11) sorted by relevance

/kernel/tests/net/test/
Dcstruct_test.py86 expected = (
90 self.assertEqual(expected, str(d))
91 expected = binascii.unhexlify("01" "02000000"
94 self.assertEqual(expected, d.Pack())
95 unpacked = DoubleNested(expected)
104 expected = ("TestStruct(byte1=2, string2=68656c6c6f0000000000000000000000,"
106 self.assertEqual(expected, str(t))
110 expected = ("TestStruct(byte1=2, string2=68656c6c6f0076697369626c65313233,"
112 self.assertEqual(expected, str(t))
116 expected = ("TestStruct(byte1=2, string2=68656c6c6fc076697369626c65313233,"
[all …]
Dparameterization_test.py53 expected = [
67 self.assertEqual(len(expected), len(actual))
68 self.assertEqual(sorted(expected), sorted(actual))
72 for test_name in expected:
77 for test_name in expected:
Dnetlink_test.py27 def _CheckConstant(self, expected, module, value, prefix): argument
29 expected,
Dtcp_repair_test.py206 def PollRepairSocketInMultipleThreads(self, netid, version, expected): argument
212 thread = SocketExceptionThread(sock, lambda sk: self.fdSelect(sock, expected))
229 expected = select.POLLIN
230 sock, multiThreads = self.PollRepairSocketInMultipleThreads(netid, version, expected)
236 expected = None
237 sock, multiThreads = self.PollRepairSocketInMultipleThreads(netid, version, expected)
243 expected = select.POLLIN | select.POLLHUP
244 sock, multiThreads = self.PollRepairSocketInMultipleThreads(netid, version, expected)
252 expected = select.POLLIN
253 sock, multiThreads = self.PollRepairSocketInMultipleThreads(netid, version, expected)
[all …]
Dmultinetwork_test.py61 desc, expected = packets.ICMPEcho(version, myaddr, dstaddr)
67 self.ExpectPacketOn(netid, msg, expected)
76 desc, expected = packets.SYN(53, version, myaddr, dstaddr,
84 self.ExpectPacketOn(netid, msg, expected)
94 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None)
99 self.ExpectPacketOn(netid, msg % "sendto", expected)
105 self.ExpectPacketOn(netid, msg % "connect/send", expected)
124 desc, expected = packets.GRE(version, myaddr, dstaddr, ethertype, inner)
127 self.ExpectPacketOn(netid, msg, expected)
185 desc, expected = packets.UDP(version, unspec, dstaddr, sport)
[all …]
Dmultinetwork_base.py628 def assertPacketMatches(self, expected, actual): argument
641 expectedip = expected.getlayer("IP")
649 expectedipv6 = expected.getlayer("IPv6")
656 expectedudp = expected.getlayer("UDP")
674 expectedtcp = expected.getlayer("TCP")
689 expected_real = expected.__class__(bytes(expected))
696 def PacketMatches(self, expected, actual): argument
698 self.assertPacketMatches(expected, actual)
711 def ExpectPacketOn(self, netid, msg, expected): argument
715 ipv6 = expected.getlayer("IPv6")
[all …]
Dsock_diag_test.py230 def assertItemsEqual(self, expected, actual): argument
232 super(SockDiagTest, self).assertItemsEqual(expected, actual)
235 super(SockDiagTest, self).assertCountEqual(expected, actual)
258 expected = (
268 self.assertEqual(expected, binascii.hexlify(bytecode))
569 desc, expected = packets.SYN(53, version, myaddr, dstaddr,
574 syn = self.ExpectPacketOn(netid, msg, expected)
816 def BlockingPoll(self, sock, mask, expected, ignoremask): argument
819 expected_fds = [(sock.fileno(), expected)]
840 def CheckPollDestroy(self, mask, expected, ignoremask): argument
[all …]
Dping6_test.py309 def IsAlmostEqual(expected, actual, delta): argument
310 return abs(expected - actual) < delta
314 expected = ["%s:%04X" % (net_test.FormatSockStatAddress(srcaddr), srcport),
321 actual_txmem, actual_rxmem = expected[3].split(":")
328 expected[3] = actual[3]
330 expected[5] = actual[5]
331 if expected == actual:
334 self.fail("Cound not find socket matching %s" % expected)
627 expected = self.lladdr
629 expected += "%" + self.ifname
[all …]
Dneighbour_test.py168 expected = (
174 self.ExpectPacketOn(self.netid, msg, expected)
181 expected = scapy.ARP(psrc=src, pdst=dst, hwsrc=llsrc, op=1)
183 self.ExpectPacketOn(self.netid, msg, expected)
Dxfrm_tunnel_test.py771 expected = _GetNullAuthCryptTunnelModePkt(
779 self.assertEqual(expected.src, pkt.src)
780 self.assertEqual(expected.dst, pkt.dst)
781 self.assertEqual(len(expected), len(pkt))
784 self.assertEqual(bytes(expected.payload), bytes(pkt.payload))
Dxfrm_test.py77 expected = (
93 self.assertMultiLineEqual(expected, actual)