Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dcstruct_test.py85 expected = (
89 self.assertEqual(expected, str(d))
90 expected = ("01" "02000000"
93 self.assertEqual(expected, d.Pack())
94 unpacked = DoubleNested(expected)
103 expected = ("TestStruct(byte1=2, string2=68656c6c6f0000000000000000000000,"
105 self.assertEqual(expected, str(t))
109 expected = ("TestStruct(byte1=2, string2=68656c6c6f0076697369626c65313233,"
111 self.assertEqual(expected, str(t))
132 expected = ("01" + text_bytes + "98BADCFE" "3412").decode("hex")
[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:
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_base.py607 def assertPacketMatches(self, expected, actual): argument
620 expectedip = expected.getlayer("IP")
628 expectedipv6 = expected.getlayer("IPv6")
635 expectedudp = expected.getlayer("UDP")
652 expectedtcp = expected.getlayer("TCP")
667 expected_real = expected.__class__(str(expected))
674 def PacketMatches(self, expected, actual): argument
676 self.assertPacketMatches(expected, actual)
689 def ExpectPacketOn(self, netid, msg, expected): argument
693 ipv6 = expected.getlayer("IPv6")
[all …]
Dsock_diag_test.py276 expected = (
286 self.assertMultiLineEqual(expected, bytecode.encode("hex"))
582 desc, expected = packets.SYN(53, version, myaddr, dstaddr,
587 syn = self.ExpectPacketOn(netid, msg, expected)
834 def BlockingPoll(self, sock, mask, expected, ignoremask): argument
837 expected_fds = [(sock.fileno(), expected)]
858 def CheckPollDestroy(self, mask, expected, ignoremask): argument
864 lambda sock: self.BlockingPoll(sock, mask, expected, ignoremask),
868 def CheckPollRst(self, mask, expected, ignoremask): argument
874 lambda sock: self.BlockingPoll(sock, mask, expected, ignoremask),
[all …]
Dping6_test.py310 def IsAlmostEqual(expected, actual, delta): argument
311 return abs(expected - actual) < delta
315 expected = ["%s:%04X" % (net_test.FormatSockStatAddress(srcaddr), srcport),
322 actual_txmem, actual_rxmem = expected[3].split(":")
329 expected[3] = actual[3]
330 if expected == actual:
333 self.fail("Cound not find socket matching %s" % expected)
592 expected = self.lladdr + "%" + self.ifname
594 self.assertEqual((expected, 4646, 0, self.ifindex), s.getsockname())
Dneighbour_test.py173 expected = (
179 self.ExpectPacketOn(self.netid, msg, expected)
186 expected = scapy.ARP(psrc=src, pdst=dst, hwsrc=llsrc, op=1)
188 self.ExpectPacketOn(self.netid, msg, expected)
Dxfrm_test.py75 expected = (
91 self.assertMultiLineEqual(expected, actual)