Add unit test for getProfiles and loadProfile
This commit is contained in:
parent
fdae44f1d3
commit
6723332224
@ -14,6 +14,14 @@ class TestMisc(unittest.TestCase):
|
|||||||
# sync
|
# sync
|
||||||
util.invoke('sync')
|
util.invoke('sync')
|
||||||
|
|
||||||
|
# getProfiles
|
||||||
|
profiles = util.invoke('getProfiles')
|
||||||
|
self.assertIsInstance(profiles, list)
|
||||||
|
self.assertGreater(len(profiles), 0)
|
||||||
|
|
||||||
|
# loadProfile
|
||||||
|
util.invoke('loadProfile', name=profiles[0])
|
||||||
|
|
||||||
# multi
|
# multi
|
||||||
actions = [util.request('version'), util.request('version'), util.request('version')]
|
actions = [util.request('version'), util.request('version'), util.request('version')]
|
||||||
results = util.invoke('multi', actions=actions)
|
results = util.invoke('multi', actions=actions)
|
||||||
|
Loading…
Reference in New Issue
Block a user