Source code for tic.web.cdp.tests.shared

"""
Shared stuff to satisfy dojo unit tests
"""
from tic.core import Component, implements
from tic.web.cdp import Command, StringProperty
from tic.web.cdp.api import ICommandHandler

[docs]class TestSelfReturnedCommand(Command): string = StringProperty()
[docs]class TestSelfReturnedCommandHanlder(Component): """ the returned result is the the same command this is to help in unit testing the round trip of all properties """ implements(ICommandHandler) command = TestSelfReturnedCommand
[docs] def execute(self, command): return command