PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/functional_tests/support/package1/tests/test_example_function.py

https://bitbucket.org/jpellerin/nose/
Python | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | e4bd5010a6973a222224005595b01bac MD5 | raw file
 1import example
 2import unittest
 3
 4class TestExampleFunction_TestCase(unittest.TestCase):
 5    def test_times_two(self):
 6        self.assertEqual(example.times_two(2), 4)
 7
 8
 9class TestExampleFunction:
10    def test_times_two(self):
11        assert example.times_two(2) == 4
12
13
14def test_times_two():
15    assert example.times_two(2) == 4