Add backward action

Add backward action
This commit is contained in:
Brian Martin
2019-01-13 21:22:19 -05:00
parent c1f6814f8e
commit ef0bd2e90d
3 changed files with 16 additions and 7 deletions
+3
View File
@@ -103,6 +103,9 @@ def test_move_command():
c = Move(action='forward')
assert_equals(ElementTree.tostring(c.to_xml()),
b'<ctl td="Move"><move action="forward" /></ctl>')
c = Move(action='backward')
assert_equals(ElementTree.tostring(c.to_xml()),
b'<ctl td="Move"><move action="backward" /></ctl>')
c = Move(action='stop')
assert_equals(ElementTree.tostring(c.to_xml()),
b'<ctl td="Move"><move action="stop" /></ctl>')