示例#1
0
 def test_that_move_without_hyphen_returns_None(self):
     game = Game()
     assert game._parse_move("7.11") == (None, None)
示例#2
0
 def test_that_move_without_integers_returns_None(self):
     game = Game()
     assert game._parse_move("Seven-Eleven") == (None, None)
示例#3
0
 def test_can_parse_valid_move(self):
     game = Game()
     assert game._parse_move("7-11") == (7, 11)
     assert game._parse_move("11-7") == (11, 7)