REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 553 B
Close
/usr/share/doc/python3-hamcrest/examples/ExampleWithAssertThat.py
Text
Base64
import sys sys.path.append("..") from hamcrest import * import unittest class ExampleWithAssertThat(unittest.TestCase): def testUsingAssertThat(self): assert_that("xx", is_("xx")) assert_that("yy", is_not("xx")) assert_that("i like cheese", contains_string("cheese")) def testCanAlsoSupplyDescriptiveReason(self): assert_that("xx", is_("xx"), "description") def testCanAlsoAssertPlainBooleans(self): assert_that(True, "This had better not fail") if __name__ == "__main__": unittest.main()
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CustomDateMatcher.py
1.62 KB
lrw-r--r--
2023-10-22 15:43:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ExampleWithAssertThat.py
553 B
lrw-r--r--
2023-10-22 15:43:13
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).