Ran update-copyright.py
[hooke.git] / test / apply_command_stack_to_playlist.py
index 483d03249980baa4a75af27377bbdea754d4a181..5657727b2d524f24054fe25d5206ef61c52b3351 100644 (file)
@@ -1,20 +1,19 @@
-# Copyright (C) 2010 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
 #
 # This file is part of Hooke.
 #
-# Hooke is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
 #
-# Hooke is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
-# Public License for more details.
+# Hooke is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+# details.
 #
-# You should have received a copy of the GNU Lesser General Public
-# License along with Hooke.  If not, see
-# <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Lesser General Public License
+# along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
 
 """
 >>> import logging
@@ -106,7 +105,8 @@ unloading curve 20071120a_i27_t33.102
 Test `apply command stack to playlist` without evaluating.
 
 >>> stack = CommandStack([
-...         CommandMessage('flat_filter_peaks --block retract --min_points 1'),
+...         CommandMessage('flat filter peaks',
+...                        {'block':'retract', 'min points':1}),
 ...         ])
 >>> h.run_command('apply command stack to playlist',
 ...     {'commands': stack, 'evaluate': False}
@@ -126,7 +126,7 @@ engine message from apply command stack to playlist
 ...     print c  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE, +REPORT_UDIFF
 <CommandMessage zero surface contact point
   {..., curve: <Curve 20071120a_i27_t33.100>...}>
-<CommandMessage flat_filter_peaks --block retract --min_points 1>
+<CommandMessage flat filter peaks {block: retract, min points: 1}>
 
 Test `clear curve command stack`.