| 1 |
#!/usr/bin/env python3 |
| 2 |
|
| 3 |
from drgn.commands import DEFAULT_COMMAND_NAMESPACE |
| 4 |
from tests import TestCase |
| 5 |
|
| 6 |
|
| 7 |
class CommandTestCase(TestCase): |
| 8 |
|
| 9 |
@staticmethod |
| 10 |
def run_command(source, **kwargs): |
| 11 |
return DEFAULT_COMMAND_NAMESPACE.run(None, source, globals={}, **kwargs) |