Skip to content

Commit c0f3fb2

Browse files
committed
more refactoring of docs
1 parent e921458 commit c0f3fb2

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

f5/bigip/resource.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
We refer to a server-provided resource as a "service". Thus far all URI
4141
referenced resources are "services" in this sense.
4242
43-
We use methods named Create, Refresh, Update, Load, Modify, and Delete to manipulate
44-
BIG-IP® device services.
43+
We use methods named Create, Refresh, Update, Load, Modify, and Delete to
44+
manipulate BIG-IP® device services.
4545
4646
Methods:
4747
@@ -69,7 +69,7 @@
6969
construction.
7070
* ResourceBase -- only `refresh` is generally supported in all resource
7171
types, this class provides `refresh`. ResourceBase objects are usually
72-
instantiated via setting lazy attributes.
72+
instantiated via setting lazy attributes.
7373
All ResourceBase objects (except BIG-IPs) have a container (BIG-IPs
7474
contain themselves). The container is the object the ResourceBase is an
7575
attribute of.
@@ -83,6 +83,10 @@
8383
post (via _create) they uniquely depend on 2 uri's, a uri that supports
8484
the creating post, and the returned uri of the newly created resource.
8585
Example URI_path: /mgmt/tm/ltm/nat/~Common~testnat1
86+
* UnnamedResource -- Some resources correspond to URIs that do not have
87+
unique names, therefore the class does _not_ support create-or-delete,
88+
and supports a customized 'load' that doesn't require name/partition
89+
parameters.
8690
"""
8791
import keyword
8892
import re

f5/bigip/test/test_resource.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,15 +670,13 @@ def test_collection_s():
670670
class TestPathElement(object):
671671

672672
def test_missing_req_param_true(self):
673-
p = PathElement(mock.MagicMock())
674673
rqset = set(['FOOPAR1', 'FOOPAR2'])
675674
fakearg = {'FOOPAR1': 'FOOVAL'}
676675
mrq = _missing_required_parameters(rqset, **fakearg)
677676
assert mrq
678677
assert mrq == ['FOOPAR2']
679678

680679
def test_missing_req_param_false(self):
681-
p = PathElement(mock.MagicMock())
682680
rqset = set(['FOOPAR1'])
683681
fakearg = {'FOOPAR1': 'FOOVAL'}
684682
mrq = _missing_required_parameters(rqset, **fakearg)

0 commit comments

Comments
 (0)