コード例 #1
0
ファイル: test_acl.py プロジェクト: LaurentFough/nettool
 def test_str(self):
     acl = Acl('test01')
     expected = 'Acl test01 #0'
     assert_equals(acl.__str__(), expected)
     acl.add(Ace(permit=False, network='1.2.3.0/24 4.5.6.0/24'))
     expected = 'Acl test01 #1\n\tdeny ip 1.2.3.0/24 4.5.6.0/24'
     assert_equals(acl.__str__(), expected)