Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_connect_rabbit():
common = Common()
common.connect_rabbit()
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
assert private == True
private = is_private('asdf')
assert private == False
def test_is_private():
private = is_private('10.10.10.10')
assert private == True
private = is_private('1.2.3.4')
assert private == False
private = is_private('192.168.1.1')
assert private == True
private = is_private('192.169.1.1')
assert private == False
private = is_private('172.16.4.4')
assert private == True
private = is_private('172.15.1.3')
assert private == False
private = is_private('172.32.3.1')
assert private == False
private = is_private('2014::1')
assert private == False
private = is_private('fe80::1')
assert private == True
private = is_private('fd13::13')
def test_setup_logger():
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
os.environ['LOG_LEVEL'] = 'DEBUG'
Common.setup_logger(logger)