PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/testfixtures/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 configparser-read.txt
↓
X
📄 configparser-write.txt
↓
X
📄 directory-contents.txt
↓
X
📄 sample1.py
↓
X
📄 sample2.py
↓
X
📄 sample3.py
↓
X
📄 test_compare.py
↓
X
📄 test_comparison.py
↓
X
📄 test_components.py
↓
X
📄 test_date.py
↓
X
📄 test_datetime.py
↓
X
📄 test_diff.py
↓
X
📁 test_django/
X
📄 test_generator.py
↓
X
📄 test_log_capture.py
↓
X
📄 test_logcapture.py
↓
X
📄 test_mappingcomparison.py
↓
X
📄 test_mock.py
↓
X
📄 test_outputcapture.py
↓
X
📄 test_popen.py
↓
X
📄 test_popen_docs.py
↓
X
📄 test_rangecomparison.py
↓
X
📄 test_replace.py
↓
X
📄 test_replacer.py
↓
X
📄 test_roundcomparison.py
↓
X
📄 test_sequencecomparison.py
↓
X
📄 test_should_raise.py
↓
X
📄 test_shouldwarn.py
↓
X
📄 test_stringcomparison.py
↓
X
📄 test_sybil.py
↓
X
📄 test_tempdir.py
↓
X
📄 test_tempdirectory.py
↓
X
📄 test_time.py
↓
X
📄 test_twisted.py
↓
X
📄 test_wrap.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_diff.py
from unittest import TestCase from testfixtures import diff class TestDiff(TestCase): def test_example(self): actual = diff(''' line1 line2 line3 ''', ''' line1 line changed line3 ''') expected = '''\ --- first +++ second @@ -1,5 +1,5 @@ line1 - line2 + line changed line3 ''' self.assertEqual( [line.strip() for line in expected.split("\n")], [line.strip() for line in actual.split("\n")], '\n%r\n!=\n%r' % (expected, actual) ) def test_no_newlines(self): actual = diff('x', 'y') expected = '--- first\n+++ second\n@@ -1 +1 @@\n-x\n+y' self.assertEqual( expected, actual, '\n%r\n!=\n%r' % (expected, actual) )
SIMPAN PERUBAHAN