def it_allows_that_there_are_duplicate_plus_ids_for_same_piece_type( self ): sokoban_plus = SokobanPlusFactory( goalorder="1 1 2 2 3 3", boxorder="2 2 3 3 1 1", pieces_count=10 ) sokoban_plus._parse() assert sokoban_plus.is_valid
def it_validates_there_are_not_to_many_ids(self): sokoban_plus = SokobanPlusFactory( goalorder="1 2 3 4 5 6", boxorder="5 4 3 2 1", pieces_count=5 ) sokoban_plus._parse() assert not sokoban_plus.is_valid