Skip to content

Commit 83e14aa

Browse files
committed
Reformated to 80 columns, phase 1
1 parent 3872cee commit 83e14aa

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

pytcp/services/udp_daytime.py

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def service(self, s: Socket) -> None:
5858
"""
5959
Inbound connection handler.
6060
"""
61-
6261
while True:
6362
_, remote_address = s.recvfrom()
6463
message = bytes(str(datetime.now()), "utf-8")

tests/ether_phtx.py

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def setUp(self):
6161
Test setup.
6262
"""
6363
super().setUp()
64-
6564
self.mns = MockNetworkSettings()
6665
patch_config(self)
6766
setup_mock_packet_handler(self)

tests/packet_flows_rx_tx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
LOCNET_IP6_ADDRESS = Ip6Address("2603:9000:e307:9f09::1fa1")
9191

9292

93-
class TestPacketHandler(TestCase):
93+
class TestPacketHandlerRxTx(TestCase):
9494
"""
9595
The RX-TX packet flow integration test class.
9696
"""

tests/udp_phtx.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#
2929
# tests/udp_phtx.py - tests specific for UDP phtx module
3030
#
31+
# ver 2.7
32+
#
3133

3234

3335
from testslide import TestCase
@@ -44,17 +46,25 @@
4446

4547

4648
class TestUdpPhtx(TestCase):
49+
"""
50+
UDP packet handler TX unit test class.
51+
"""
52+
4753
def setUp(self):
54+
"""
55+
Set up the test environment.
56+
"""
4857
super().setUp()
49-
5058
self.mns = MockNetworkSettings()
5159
patch_config(self)
5260
setup_mock_packet_handler(self)
5361

5462
# Test name format: 'test_name__test_description__optional_condition'
5563

5664
def test_udp_phtx__ip4_udp_packet(self):
57-
"""Test sending IPv4/UDP packet with no data"""
65+
"""
66+
Test sending the IPv4/UDP packet with no data.
67+
"""
5868

5969
tx_status = self.packet_handler._phtx_udp(
6070
ip_src=self.mns.stack_ip4_host.address,

0 commit comments

Comments
 (0)