convert to unicode_literals
[htsworkflow.git] / labels / test_labels.py
1 """
2 This file demonstrates two different styles of tests (one doctest and one
3 unittest). These will both pass when you run "manage.py test".
4
5 Replace these with more appropriate tests for your application.
6 """
7 from __future__ import unicode_literals
8
9 from django.test import TestCase
10
11 class SimpleTest(TestCase):
12     def test_basic_addition(self):
13         """
14         Tests that 1 + 1 always equals 2.
15         """
16         self.failUnlessEqual(1 + 1, 2)
17
18 __test__ = {"doctest": """
19 Another way to test that 1 + 1 is equal to 2.
20
21 >>> 1 + 1 == 2
22 True
23 """}
24
25 def suite():
26     from unittest import TestSuite, defaultTestLoader
27     suite = TestSuite()
28     suite.addTests(defaultTestLoader.loadTestsFromTestCase(SimpleTest))
29     return suite
30
31 if __name__ == "__main__":
32     from unittest import main
33     main(defaultTest="suite")