From dd7ec9b5e228ec3f10b6bd27e4bc56b812ba1c35 Mon Sep 17 00:00:00 2001 From: Na Yue Date: Fri, 9 Aug 2024 16:32:30 -0700 Subject: [PATCH] Create test_pr.py --- test_pr.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test_pr.py diff --git a/test_pr.py b/test_pr.py new file mode 100644 index 0000000..afbcad9 --- /dev/null +++ b/test_pr.py @@ -0,0 +1,4 @@ +def hardcoded_ip_address_noncompliant(): + sock = socket(AF_INET, SOCK_STREAM) + # Noncompliant: IP address is hardcoded. + sock.bind(('193.168.14.31', 80))