diff options
Diffstat (limited to 'tests/integration_tests/__init__.py')
-rw-r--r-- | tests/integration_tests/__init__.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration_tests/__init__.py b/tests/integration_tests/__init__.py new file mode 100644 index 00000000..81f9b02f --- /dev/null +++ b/tests/integration_tests/__init__.py @@ -0,0 +1,14 @@ +import random + + +def random_mac_address() -> str: + """Generate a random MAC address. + + The MAC address will have a 1 in its least significant bit, indicating it + to be a locally administered address. + """ + return "02:00:00:%02x:%02x:%02x" % ( + random.randint(0, 255), + random.randint(0, 255), + random.randint(0, 255), + ) |