Skip to content

Commit 62904c6

Browse files
author
Paul Breaux
committed
Addressing test change from @zancas, to add isinstance check of template and service objects, to ensure they are what we think they are.
1 parent b1123da commit 62904c6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/functional/tm/sys/test_sys_application.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
from pprint import pprint as pp
1717
from requests import HTTPError
1818

19+
from f5.bigip.tm.sys.application import Service
20+
from f5.bigip.tm.sys.application import Template
21+
1922
pp(__file__)
2023
TESTDESCRIPTION = 'TESTDESCRIPTION'
2124

@@ -59,7 +62,7 @@ def teardown():
5962
partition=partition,
6063
actions=definition
6164
)
62-
assert test_template is not None
65+
assert isinstance(test_template, Template)
6366
return template_s, test_template
6467

6568

@@ -76,14 +79,14 @@ def teardown():
7679
partition=partition,
7780
actions=definition
7881
)
79-
assert test_template is not None
82+
assert isinstance(test_template, Template)
8083
test_service = service_s.service.create(
8184
name=name,
8285
partition=partition,
8386
template=template_name,
8487
trafficGroup=tgroup
8588
)
86-
assert test_service is not None
89+
assert isinstance(test_service, Service)
8790
request.addfinalizer(teardown)
8891
return service_s, test_service
8992

0 commit comments

Comments
 (0)