blob: 872f96ac24f69e7abab1a6c8efaa4992e1726aa3 (
plain)
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
26
27
28
29
30
31
32
|
# coding: utf-8
import pytest # NOQA
from roundtrip import round_trip
class TestIndentFailures:
def test_tag(self):
round_trip("""\
!!python/object:__main__.Developer
name: Anthon
location: Germany
language: python
""")
def test_full_tag(self):
round_trip("""\
!!tag:yaml.org,2002:python/object:__main__.Developer
name: Anthon
location: Germany
language: python
""")
def test_standard_tag(self):
round_trip("""\
!!tag:yaml.org,2002:python/object:map
name: Anthon
location: Germany
language: python
""")
|