def test_parse_command_file_params(self): test_data = 'S img.bmp' result = editor.parse_command(test_data) assert result == ('S', ['img.bmp'])
def test_parse_command_no_param(self): test_data = 'X' result = editor.parse_command(test_data) assert result == ('X', [])
def test_parse_command_num_params(self): test_data = 'A 5 6' result = editor.parse_command(test_data) assert result == ('A', [5, 6])