File: test_flowsequencekey.py

package info (click to toggle)
python-ruyaml 0.92.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,732 kB
  • sloc: python: 19,399; makefile: 200; sh: 13
file content (25 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# coding: utf-8

"""
test flow style sequences as keys roundtrip

"""

# import pytest

from roundtrip import round_trip  # type: ignore


class TestFlowStyleSequenceKey:
    def test_so_39595807(self) -> None:
        inp = """\
        %YAML 1.2
        ---
        [2, 3, 4]:
          a:
          - 1
          - 2
          b: Hello World!
          c: 'VoilĂ !'
        """
        round_trip(inp, preserve_quotes=True, explicit_start=True, version=(1, 2))