§
v<ˆjÎ ã óv — d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m
ZmZ d dl
mZmZ G d„ de¦ « Zd S )
é )Údedent)ÚTestCase)ÚMock)ÚDocument)ÚcompareÚ
ComparisonÚ
TempDirectory)Ú
FileParserÚ FileBlockc óJ — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z
d „ Zd
„ ZdS )ÚTestFileParserc ó¾ — t t |¦ « d¬¦ « }t t d„ t d¦ « |¦ « D ¦ « ¦ « |¬¦ « d S )Nz /dev/null)Úpathc 3 ó$ K — | ]}|j V — Œd S )N)Úparsed)Ú.0Úrs úo/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/testfixtures/tests/test_sybil.pyú z0TestFileParser.check_document.. s$ è è € Ð7Ð7˜a�”Ð7Ð7Ð7Ð7Ð7Ð7ó Útd©Úexpected)r r r Úlistr
)ÚselfÚtextr Úds r Úcheck_documentzTestFileParser.check_document
sk € Ý•V˜D‘\”\¨Ð4Ñ4Ô4ˆÝÝÐ7Ð7Ð#3¥:¨dÑ#3Ô#3°AÑ#6Ô#6Ð7Ñ7Ô7Ñ7Ô7Øð
ñ
ô
ð
ð
ð
r c
ó� — | dt t ddd¬¦ « t t ddd¬¦ « g¬ ¦ « d S )
Nas
.. topic:: file.txt
:class: write-file
line 1
line 2
line 3
.. topic:: file2.txt
:class: read-file
line 4
line 5
line 6
úfile.txtúline 1
line 2
line 3
Úwrite©r ÚcontentÚactionz file2.txtzline 4
line 5
line 6
Úread©r r ©r ÚCr ©r s r Útest_multiple_filesz"TestFileParser.test_multiple_files sq € Ø×Òðõ* •)Ø!Ø6Ø ð"ñ "ô "õ •)Ø"Ø6Øð!ñ !ô !ð ð+ ñ ô ð ð ð r c ób — | dt t ddd¬¦ « g¬¦ « d S )NzÊ
.. topic:: file.txt
:class: write-file
::
line 1
line 2
line 3
r r! r" r# r' r( r* s r Útest_ignore_literal_blockingz+TestFileParser.test_ignore_literal_blocking5 sR € Ø×Òð
õ •)Ø!Ø6Ø ð"ñ "ô "ðð ñ ô ð ð ð r c ób — | dt t ddd¬¦ « g¬¦ « d S )Nzÿ
.. topic:: file.txt
:class: write-file
print("hello")
out = 'there'
foo = 'bar'
This is just some normal text!
r z*print("hello")
out = 'there'
foo = 'bar'
r" r# r' r( r* s r Útest_file_followed_by_textz)TestFileParser.test_file_followed_by_textI sU € Ø×Òðõ •)Ø!ðAà ð "ñ "ô "ðð ñ ô ð ð ð r c ó4 — | dg ¬¦ « d S )NzŸ
.. topic:: file.txt
:class: not-a-file
print "hello"
out = 'there'
r' ©r r* s r Útest_red_herringzTestFileParser.test_red_herring_ s3 € Ø×Òðð ð ñ
ô
ð
ð
ð
r c ó4 — | dg ¬¦ « d S )Nz‹
.. topic:: file.txt
print "hello"
out = 'there'
r' r1 r* s r Ú
test_no_classzTestFileParser.test_no_classl s3 € Ø×Òðð ð ñ
ô
ð
ð
ð
r c ó’ — t d¦ « }t || t |d|idd¬¦ « ¦ « ¬¦ « d S )Nr z /the/fileé* )r Ú namespacer Úline)Úactual)r
r Úevaluater )r ÚdirÚblockr Úparsers r Úcheck_evaluatezTestFileParser.check_evaluatex sc € ݘDÑ!Ô!ˆÝ� §¢µØØ˜S�kØØð 2
ñ 2
ô 2
ñ "ô "ð ñ ô ð ð ð r c óÎ — t ¦ « 5 }| dd¦ « | |t ddd¦ « d ¬¦ « d d d ¦ « d S # 1 swxY w Y d S )NÚfoos contentr$ r&