a new-style testing library
Project description
Oktest is a new-style testing library.
from oktest import ok, NG
ok (x) > 0 # same as assert_(x > 0)
ok (s) == 'foo' # same as assertEqual(s, 'foo')
ok (s) != 'foo' # same as assertNotEqual(s, 'foo')
ok (f).raises(ValueError) # same as assertRaises(ValueError, f)
ok (u'foo').is_a(unicode) # same as assert_(isinstance(u'foo', unicode))
NG (u'foo').is_a(int) # same as assert_(not isinstance(u'foo', int))
ok ('A.txt').is_file() # same as assert_(os.path.isfile('A.txt'))
NG ('A.txt').is_dir() # same as assert_(not os.path.isdir('A.txt'))
You can use ok() instead of ‘assertXxx()’ in unittest.
Oktest requires Python 2.4 or later. Oktest is ready for Python 3.
NOTICE!! Oktest is a young project and specification may change in the future.
See README for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Oktest-0.8.0.tar.gz.
File metadata
- Download URL: Oktest-0.8.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b293de27aa915018c0c8ef4234ceb4b294b1437c4b37aed1b8e32fddd1325a
|
|
| MD5 |
5d6c7265cf07c19321a06d47f6096008
|
|
| BLAKE2b-256 |
b5da891a339a8ca16025d673c64ece9dbf82db117e78f3ceb4537a468eff2535
|
File details
Details for the file Oktest-0.8.0-py3.2.egg.
File metadata
- Download URL: Oktest-0.8.0-py3.2.egg
- Upload date:
- Size: 25.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad41f6bdcc16342657f605b86b695749a5870c607a619e90b98534c402050ca3
|
|
| MD5 |
f0d7e0a85e2df927bc80c930e1bcc44d
|
|
| BLAKE2b-256 |
9a60bf41790c27990fa2d4692c6e9fd437d310aa020dda7e371a5b567c690779
|
File details
Details for the file Oktest-0.8.0-py3.1.egg.
File metadata
- Download URL: Oktest-0.8.0-py3.1.egg
- Upload date:
- Size: 25.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a2d60dcc0f0d32df6c78c48f0c9e5a7d8cb93b6d984558da597b0995d9575d2
|
|
| MD5 |
2281ba0e2b2d56edd52c5fddd8b3033c
|
|
| BLAKE2b-256 |
fb12e59f9394b55e7f063e08d9932ad45ae44b9f02caad7ce2b6e3d7dd2925fe
|
File details
Details for the file Oktest-0.8.0-py3.0.egg.
File metadata
- Download URL: Oktest-0.8.0-py3.0.egg
- Upload date:
- Size: 25.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
034d2377ee4026e7c4a0cc09ff977f2b042e518b8dd30efeaedf84ab0c633928
|
|
| MD5 |
ab017760bf069fb043c315fb56308511
|
|
| BLAKE2b-256 |
fe9a76bf4bc558972d07a412ff5d31b61957a16f3937454bbe0af770afdc600f
|
File details
Details for the file Oktest-0.8.0-py2.7.egg.
File metadata
- Download URL: Oktest-0.8.0-py2.7.egg
- Upload date:
- Size: 24.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df5a6e98d63da371e287b39ff507006e7c69d24af687412cdca9c04a45f2346
|
|
| MD5 |
bd1ff17233c4abcdc9b694878e6ecabe
|
|
| BLAKE2b-256 |
59550839bc1bcca5ed3860113531afd55233ac747ddd902002f5f5e817e50237
|
File details
Details for the file Oktest-0.8.0-py2.6.egg.
File metadata
- Download URL: Oktest-0.8.0-py2.6.egg
- Upload date:
- Size: 25.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ed4bd75a053c5a85c90dd4a2ee8b4b66465e98da600d9e6077ede24e7c66c6
|
|
| MD5 |
4777143ed2a9c38a7e664d0fc95c424b
|
|
| BLAKE2b-256 |
da3a96a4e02f2c5f954fb8ae8e30705ede054a4689f5daca0dc514636bc6bcf9
|
File details
Details for the file Oktest-0.8.0-py2.5.egg.
File metadata
- Download URL: Oktest-0.8.0-py2.5.egg
- Upload date:
- Size: 25.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ba6ea3c1ae011364e600ee19f1ce673e9ae3e0ccafe2ccbb5b37198b6d1f2b5
|
|
| MD5 |
491a34b231f82e48c6b00e7a89f3ffa9
|
|
| BLAKE2b-256 |
bae171fd681daa5cd050a8ce7753ed563fd707599bc0f0c19e6e6fec157862ef
|
File details
Details for the file Oktest-0.8.0-py2.4.egg.
File metadata
- Download URL: Oktest-0.8.0-py2.4.egg
- Upload date:
- Size: 25.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
687d2e12709b26cf818a45b85a1b06391f3237a6844e759b8bc9850d1c22ed63
|
|
| MD5 |
e885cb57f2388689738f742059707e41
|
|
| BLAKE2b-256 |
3ac9b4c87365b966c85b1d81feb10a172523877f2161e880a89efb9f8296e2d3
|