コード例 #1
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_invalid_command_raises_invalid_command():
    assert_true(callable(command.parse("DANCE")))
コード例 #2
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_right_command_should_return_a_function():
    assert_true(callable(command.parse("RIGHT")))
コード例 #3
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_place_command_with_bad_heading_should_raise_invalid_argument():
    assert_true(callable(command.parse("PLACE 0,0,HOME")))
コード例 #4
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_place_command_with_no_arguments_should_raise_invalid_argument():
    assert_true(callable(command.parse("PLACE")))
コード例 #5
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_place_command_should_return_a_function():
    assert_true(callable(command.parse("PLACE 0,0,NORTH")))
コード例 #6
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_move_command_should_return_a_function():
    assert_true(callable(command.parse("MOVE")))
コード例 #7
0
ファイル: command_tests.py プロジェクト: tekerson/pybots
def test_parsing_left_command_should_return_a_function():
    assert_true(callable(command.parse("LEFT")))