Skip to content

Commit 58eda9d

Browse files
committed
Add greentea test for parsing protocol in grm
1 parent a911183 commit 58eda9d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test/mbed_gt_test_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,5 +599,14 @@ def test_run_htrun_unicode(self):
599599
_run_command.return_value = p_mock
600600
returncode, htrun_output = mbed_test_api.run_htrun("dummy", True)
601601

602+
def test_parse_global_resource_mgr(self):
603+
expected = ("K64F", "module_name", "10.2.123.43", "3334")
604+
result = mbed_test_api.parse_global_resource_mgr(":".join(expected))
605+
self.assertEqual(result, expected)
606+
607+
expected = ("K64F", "module_name", "https://10.2.123.43", "3334")
608+
result = mbed_test_api.parse_global_resource_mgr(":".join(expected))
609+
self.assertEqual(result, expected)
610+
602611
if __name__ == '__main__':
603612
unittest.main()

0 commit comments

Comments
 (0)