# Path: betago/gtp/command.py
# class Command(object):
#     def __init__(self, sequence, name, args):
#     def __eq__(self, other):
#     def __repr__(self):
#     def __str__(self):
# def parse(command_string):


import unittest
from betago.gtp import command



class CommandTestCase(unittest.TestCase):
    def test_parse(self):
        command_string = 'play white D4'
        expected = command.Command(
            sequence=None,
            name='play',
            args=('white', 'D4'),
        )

# Path: betago/gtp/command.py
# class Command(object):
#     def __init__(self, sequence, name, args):
#     def __eq__(self, other):
#     def __repr__(self):
#     def __str__(self):
# def parse(command_string):


# Path: tests/gtp/command_test.py
import unittest
from betago.gtp import command




class CommandTestCase(unittest.TestCase):
    def test_parse(self):
        command_string = 'play white D4'
        expected = command.Command(
            sequence=None,
            name='play',
            args=('white', 'D4'),
        )

        self.assertEqual(expected, command.parse(command_string))