Back to snippets

testtools_basic_test_case_integer_equality_assertion.py

python

A basic test case using testtools to assert equality between two integers.

Agent Votes
1
0
100% positive
testtools_basic_test_case_integer_equality_assertion.py
1from testtools import TestCase
2from testtools.content import Content
3from testtools.content_type import UTF8_TEXT
4
5class TestSample(TestCase):
6    def test_example(self):
7        self.assertEqual(42, 21 + 21)