Exemple #1
0
def test_empty_entity_in_options():
    parser = LogParser()
    parser.read(StringIO(INITIAL_GAME))
    parser.flush()

    data = "target 0 entity="
    with pytest.raises(ParsingError):
        # This can happen, but the game is corrupt
        parser.handle_options(None, data)
def test_empty_entity_in_options():
	parser = LogParser()
	parser.read(StringIO(INITIAL_GAME))
	parser.flush()

	data = "target 0 entity="
	with pytest.raises(ParsingError):
		# This can happen, but the game is corrupt
		parser.handle_options(None, data)