@@ -39,40 +39,40 @@ def FakePortLst():
3939
4040
4141class TestAddresslist_sharedobjects (object ):
42- def test_create_two (self , fakeicontrolsession ):
43- b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
44- b ._meta_data ['tmos_version' ] = '14.0.0'
45- a1 = b .tm .security .shared_objects .address_lists .address_list
46- a2 = b .tm .security .shared_objects .address_lists .address_list
47- assert a1 is not a2
42+ def test_create_two (self , fakeicontrolsession ):
43+ b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
44+ b ._meta_data ['tmos_version' ] = '14.0.0'
45+ a1 = b .tm .security .shared_objects .address_lists .address_list
46+ a2 = b .tm .security .shared_objects .address_lists .address_list
47+ assert a1 is not a2
4848
49- def test_create_no_args (self , FakeAddrLst ):
50- with pytest .raises (MissingRequiredCreationParameter ):
51- FakeAddrLst .create ()
49+ def test_create_no_args (self , FakeAddrLst ):
50+ with pytest .raises (MissingRequiredCreationParameter ):
51+ FakeAddrLst .create ()
5252
53- def test_create_mandatory_args_missing (self , fakeicontrolsession ):
54- b = ManagementRoot ('192.168.1.1.' , 'admin' , 'admin' )
55- b ._meta_data ['tmos_version' ] = '14.0.0'
56- with pytest .raises (MissingRequiredCreationParameter ):
57- b .tm .security .shared_objects .address_lists .address_list .create (
58- name = 'destined_to_fail' , partition = 'Common' )
53+ def test_create_mandatory_args_missing (self , fakeicontrolsession ):
54+ b = ManagementRoot ('192.168.1.1.' , 'admin' , 'admin' )
55+ b ._meta_data ['tmos_version' ] = '14.0.0'
56+ with pytest .raises (MissingRequiredCreationParameter ):
57+ b .tm .security .shared_objects .address_lists .address_list .create (
58+ name = 'destined_to_fail' , partition = 'Common' )
5959
6060
6161class TestPortList_sharedobjects (object ):
62- def test_create_two (self , fakeicontrolsession ):
63- b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
64- b ._meta_data ['tmos_version' ] = '14.0.0'
65- r1 = b .tm .security .shared_objects .port_lists .port_list
66- r2 = b .tm .security .shared_objects .port_lists .port_list
67- assert r1 is not r2
62+ def test_create_two (self , fakeicontrolsession ):
63+ b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
64+ b ._meta_data ['tmos_version' ] = '14.0.0'
65+ r1 = b .tm .security .shared_objects .port_lists .port_list
66+ r2 = b .tm .security .shared_objects .port_lists .port_list
67+ assert r1 is not r2
6868
69- def test_create_no_args (self , FakePortLst ):
70- with pytest .raises (MissingRequiredCreationParameter ):
71- FakePortLst .create ()
69+ def test_create_no_args (self , FakePortLst ):
70+ with pytest .raises (MissingRequiredCreationParameter ):
71+ FakePortLst .create ()
7272
73- def test_create_mandatory_args_missing (self , fakeicontrolsession ):
74- b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
75- b ._meta_data ['tmos_version' ] = '14.0.0'
76- with pytest .raises (MissingRequiredCreationParameter ):
77- b .tm .security .shared_objects .port_lists .port_list .create (
78- name = 'destined_to_fail' , partition = 'Common' )
73+ def test_create_mandatory_args_missing (self , fakeicontrolsession ):
74+ b = ManagementRoot ('192.168.1.1' , 'admin' , 'admin' )
75+ b ._meta_data ['tmos_version' ] = '14.0.0'
76+ with pytest .raises (MissingRequiredCreationParameter ):
77+ b .tm .security .shared_objects .port_lists .port_list .create (
78+ name = 'destined_to_fail' , partition = 'Common' )
0 commit comments