MCPcopy Create free account
hub / github.com/ARMmbed/mbed-cli / assertls

Function assertls

test/util.py:103–110  ·  view source on GitHub ↗
(mbed, dir, tree)

Source from the content-addressed store, hash-verified

101 return os.path.abspath(name+'.hg').replace('\\', '/')
102
103def assertls(mbed, dir, tree):
104 tree = ''.join(re.escape(l)+r'.*\n' for l in tree)
105
106 with cd(dir):
107 result = pquery(['python', mbed, 'ls'])
108
109 print(result)
110 assert re.match(tree, result, re.MULTILINE)
111
112def scm(dir=None):
113 if not dir:

Callers 9

test_importFunction · 0.85
test_removeFunction · 0.85
test_import_after_removeFunction · 0.85
test_sync_update_removeFunction · 0.85
test_sync_update_addFunction · 0.85
test_sync_update_moveFunction · 0.85
test_addFunction · 0.85
test_import_after_addFunction · 0.85
test_lsFunction · 0.85

Calls 2

cdFunction · 0.70
pqueryFunction · 0.70

Tested by 9

test_importFunction · 0.68
test_removeFunction · 0.68
test_import_after_removeFunction · 0.68
test_sync_update_removeFunction · 0.68
test_sync_update_addFunction · 0.68
test_sync_update_moveFunction · 0.68
test_addFunction · 0.68
test_import_after_addFunction · 0.68
test_lsFunction · 0.68