File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ def json(self):
6262 monkeypatch .setattr ('f5.bigip.iControlRESTSession' , fakesessionclass )
6363
6464
65-
6665@pytest .fixture
6766def fakeicontrolsessionfactory (monkeypatch ):
6867 class Response (object ):
@@ -87,6 +86,7 @@ def _session_factory(**json_keys):
8786
8887 return _session_factory
8988
89+
9090@pytest .fixture
9191def fakeicontrolsession_v12 (monkeypatch ):
9292 class Response (object ):
Original file line number Diff line number Diff line change @@ -144,24 +144,6 @@ def _is_version_supported_method(container, method_version):
144144 tmos_v , method_version )
145145 raise UnsupportedTmosVersion (error )
146146
147- def _is_version_supported_method (container , method_version ):
148- """Helper method
149-
150- To use in instances where class methods on some resources
151- require a specific TMOS version to run.
152-
153- Raises::
154- UnsupportedTmosVersion
155- """
156- tmos_v = container ._meta_data ['bigip' ].tmos_version
157- if LooseVersion (tmos_v ) < LooseVersion (method_version ):
158- error = "There was an attempt to use a method which " \
159- "has not been implemented or supported " \
160- "in the device's TMOS version: %s. " \
161- "Minimum TMOS version supported is %s" % (
162- tmos_v , method_version )
163- raise UnsupportedTmosVersion (error )
164-
165147
166148class ExclusiveAttributesMixin (object ):
167149 """Overrides ``__setattr__`` to remove exclusive attrs from the object."""
You can’t perform that action at this time.
0 commit comments