Chamomile makes it more pleasant to make assertions inside your Python unit tests. It borrows heavily from Jasmine’s assertion syntax. Take a look:
import chamomile
class ExampleTest(chamomile.Test):
def test_simple_assertions(self):
self.expect(12).to_equal(12)
self.expect(False).to_not_be(0)
with self.expect(ZeroDivsionError):
4 / 0
You can easily browse the full list of available assertions in the source.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chamomile-1.0.1.tar.gz
(4.2 kB
view details)
File details
Details for the file chamomile-1.0.1.tar.gz.
File metadata
- Download URL: chamomile-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b78dd5f75d488404ebdf77757ad73dac511d28405f181ffd7f0fc2e31234d06f
|
|
| MD5 |
ec8bc4c7125a2f260185c9b9a2241b00
|
|
| BLAKE2b-256 |
01683034e2e334a5e3f9884527a26e83f0e0e5a72074c0838a635e0191b7560d
|