Ejemplo n.º 1
0
 def test_invalid_params(self):
     cd = CommandDefinition()
     with pytest.raises(TypeError):
         cd.params(42)
Ejemplo n.º 2
0
 def resolve(self):
     """Create a CommandDefinition from this object."""
     cmd = CommandDefinition().command(self._command_type())
     return cmd.params(self._export_params())