Skip to content

Commit c35ad97

Browse files
committed
fix flake8 errors
1 parent 871c04b commit c35ad97

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def json(self):
6262
monkeypatch.setattr('f5.bigip.iControlRESTSession', fakesessionclass)
6363

6464

65-
6665
@pytest.fixture
6766
def 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
9191
def fakeicontrolsession_v12(monkeypatch):
9292
class Response(object):

f5/bigip/mixins.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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

166148
class ExclusiveAttributesMixin(object):
167149
"""Overrides ``__setattr__`` to remove exclusive attrs from the object."""

0 commit comments

Comments
 (0)