[style] change python yapf column_limit to 119 (#5339)

This commit is contained in:
Simon Lin
2020-08-06 21:40:24 -07:00
committed by GitHub
parent e810357adb
commit d7343c877b
150 changed files with 2910 additions and 5676 deletions
+12 -24
View File
@@ -52,8 +52,7 @@ def any_ipv6_address():
class TestMessageInfo(unittest.TestCase):
def test_should_return_source_ipv6_value_when_source_ipv6_property_is_called(
self):
def test_should_return_source_ipv6_value_when_source_ipv6_property_is_called(self):
# GIVEN
source_ipv6 = any_ipv6_address()
@@ -64,11 +63,9 @@ class TestMessageInfo(unittest.TestCase):
actual_source_ipv6 = message_info.source_ipv6
# THEN
self.assertEqual(ipaddress.ip_address(bytes(source_ipv6)),
actual_source_ipv6)
self.assertEqual(ipaddress.ip_address(bytes(source_ipv6)), actual_source_ipv6)
def test_should_return_destination_ipv6_value_when_destination_ipv6_property_is_called(
self):
def test_should_return_destination_ipv6_value_when_destination_ipv6_property_is_called(self):
# GIVEN
destination_ipv6 = any_ipv6_address()
@@ -84,8 +81,7 @@ class TestMessageInfo(unittest.TestCase):
actual_destination_ipv6,
)
def test_should_return_source_eui64_value_when_source_eui64_property_is_called(
self):
def test_should_return_source_eui64_value_when_source_eui64_property_is_called(self):
# GIVEN
source_mac_address = any_eui64()
@@ -98,8 +94,7 @@ class TestMessageInfo(unittest.TestCase):
# THEN
self.assertEqual(source_mac_address, actual_source_mac_address)
def test_should_return_destination_eui64_value_when_destination_eui64_property_is_called(
self):
def test_should_return_destination_eui64_value_when_destination_eui64_property_is_called(self):
# GIVEN
destination_mac_address = any_eui64()
@@ -110,14 +105,12 @@ class TestMessageInfo(unittest.TestCase):
actual_destination_mac_address = message_info.destination_mac_address
# THEN
self.assertEqual(destination_mac_address,
actual_destination_mac_address)
self.assertEqual(destination_mac_address, actual_destination_mac_address)
class TestMacAddress(unittest.TestCase):
def test_should_create_MacAddress_from_eui64_when_from_eui64_classmethod_is_called(
self):
def test_should_create_MacAddress_from_eui64_when_from_eui64_classmethod_is_called(self):
# GIVEN
eui64 = any_eui64()
@@ -128,8 +121,7 @@ class TestMacAddress(unittest.TestCase):
self.assertEqual(common.MacAddressType.LONG, mac_address.type)
self.assertEqual(eui64, mac_address.mac_address)
def test_should_create_MacAddress_from_rloc16_int_when_from_rloc16_classmethod_is_called(
self):
def test_should_create_MacAddress_from_rloc16_int_when_from_rloc16_classmethod_is_called(self):
# GIVEN
rloc16 = any_rloc16_int()
@@ -140,8 +132,7 @@ class TestMacAddress(unittest.TestCase):
self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
self.assertEqual(struct.pack(">H", rloc16), mac_address.mac_address)
def test_should_create_MacAddress_from_rloc16_bytearray_when_from_rloc16_classmethod_is_called(
self):
def test_should_create_MacAddress_from_rloc16_bytearray_when_from_rloc16_classmethod_is_called(self):
# GIVEN
rloc16 = any_rloc16_bytearray()
@@ -152,8 +143,7 @@ class TestMacAddress(unittest.TestCase):
self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
self.assertEqual(rloc16, mac_address.mac_address)
def test_should_convert_short_MacAddress_to_iid_when_convert_method_is_called(
self):
def test_should_convert_short_MacAddress_to_iid_when_convert_method_is_called(self):
# GIVEN
rloc16 = any_rloc16_bytearray()
@@ -163,11 +153,9 @@ class TestMacAddress(unittest.TestCase):
iid = mac_address.convert_to_iid()
# THEN
self.assertEqual(
bytearray([0x00, 0x00, 0x00, 0xff, 0xfe, 0x00]) + rloc16, iid)
self.assertEqual(bytearray([0x00, 0x00, 0x00, 0xff, 0xfe, 0x00]) + rloc16, iid)
def test_should_convert_eui64_MacAddress_to_iid_when_convert_method_is_called(
self):
def test_should_convert_eui64_MacAddress_to_iid_when_convert_method_is_called(self):
# GIVEN
eui64 = any_eui64()