Ignore:
Timestamp:
21/11/12 13:32:14 (8 years ago)
Author:
mnagni
Message:

corrects when netloc is empty and path is not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/dj_security/test/test_middleware.py

    r8689 r8691  
    66import unittest 
    77from dj_security.middleware import _calculate_remote_ip 
     8import socket 
    89 
    910 
     
    1617        self._check_remote_ip('http://www.google.com/intl/it/about.html') 
    1718        self._check_remote_ip('http://www.google.com:80/intl/it/about.html') 
    18         #self._check_remote_ip('http://localhost') 
     19        self._check_remote_ip(socket.getfqdn()) 
    1920        #self._check_remote_ip('http://localhost:80') 
    2021 
Note: See TracChangeset for help on using the changeset viewer.