File: test_example_function.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (15 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import example
import unittest

class TestExampleFunction_TestCase(unittest.TestCase):
    def test_times_two(self):
        self.assertEqual(example.times_two(2), 4)


class TestExampleFunction:
    def test_times_two(self):
        assert example.times_two(2) == 4


def test_times_two():
    assert example.times_two(2) == 4