def assert_executed_command(self, expected_cmd, with_path=True):
if not with_path:<EOL><INDENT>self.adapter.execute.assert_called_once_with(expected_cmd)<EOL><DEDENT>else:<EOL><INDENT>self.adapter.execute.assert_called_once_with(<EOL>expected_cmd,<EOL>os.path.join(self.sandbox.path, "<STR_LIT>"))<EOL><DEDENT>
Assert that adapter has executed expected command.