format everything with black
This commit is contained in:
@@ -148,9 +148,7 @@ def flattened_product(l1, l2):
|
||||
return result
|
||||
|
||||
|
||||
VENDOR_TEST_ATTRIBUTES = flattened_product(
|
||||
VENDOR_FORMAT_COMBINATIONS, TEST_ATTRIBUTES
|
||||
)
|
||||
VENDOR_TEST_ATTRIBUTES = flattened_product(VENDOR_FORMAT_COMBINATIONS, TEST_ATTRIBUTES)
|
||||
VENDOR_TAGGED_ATTRIBUTES = flattened_product(
|
||||
VENDOR_FORMAT_COMBINATIONS, TAGGED_ATTRIBUTES
|
||||
)
|
||||
@@ -206,13 +204,7 @@ def generate_vendor_attribute(vendor_id, tlen, llen, attr_bytes):
|
||||
|
||||
attr_bytes = attr_bytes[2:]
|
||||
packet = (
|
||||
bytes(20)
|
||||
+ b"\x1a"
|
||||
+ vsa_length
|
||||
+ vendor_id
|
||||
+ attr_type
|
||||
+ attr_len
|
||||
+ attr_bytes
|
||||
bytes(20) + b"\x1a" + vsa_length + vendor_id + attr_type + attr_len + attr_bytes
|
||||
)
|
||||
return packet
|
||||
|
||||
@@ -268,9 +260,7 @@ def test_password(plaintext, obfuscated, authenticator):
|
||||
assert len(decoded) == len(plaintext)
|
||||
assert decoded == plaintext
|
||||
|
||||
assert utils.validate_pap_password(
|
||||
SECRET, authenticator, encoded, plaintext
|
||||
)
|
||||
assert utils.validate_pap_password(SECRET, authenticator, encoded, plaintext)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user