Skip to content

Commit

Permalink
tests: preferences: bugfix: use more generic method to test cf
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Mar 6, 2022
1 parent aa7029d commit 878c27c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rpcclient/tests/test_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ def test_cf_get_value(client):
"""
:param rpcclient.client.Client client:
"""
assert 'com.apple.system.diagnostics' in client.preferences.cf.get_value('uuid-mappings',
'com.apple.networkextension.uuidcache',
'kCFPreferencesAnyUser')
assert 0 == client.preferences.cf.get_value('drop_all_level',
'com.apple.networkextension.necp',
'kCFPreferencesAnyUser')


def test_cf_get_dict(client):
"""
:param rpcclient.client.Client client:
"""
assert 'com.apple.system.diagnostics' in client.preferences.cf.get_dict('com.apple.networkextension.uuidcache',
'kCFPreferencesAnyUser')['uuid-mappings']
assert 0 == client.preferences.cf.get_dict('com.apple.networkextension.necp',
'kCFPreferencesAnyUser')['drop_all_level']


def test_cf_set(client):
Expand Down

0 comments on commit 878c27c

Please sign in to comment.