<s> from django . test import TestCase <EOL> from localshop . apps . permissions import models <EOL> from tests . factories import CIDRFactory <EOL> class CidrTest ( TestCase ) : <EOL> def test_has_access ( self ) : <EOL> self . assertFalse ( models . CIDR . objects . has_access ( '<STR_LIT>' ) ) <EOL> def test_simple ( self ) : <EOL> cidr = CIDRFactory ( cidr = '<STR_LIT>' , require_credentials = True ) <EOL> assert cidr . repository . cidr_list . has_access ( '<STR_LIT>' ) <EOL> def test_cidr ( self ) : <EOL> cidr = CIDRFactory ( cidr = '<STR_LIT>' , require_credentials = True ) <EOL> assert cidr . repository . cidr_list . has_access ( '<STR_LIT>' ) </s>
