blob: b860940a3804d1a5fdc946705860c9bc74d6f059 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"""A tiny example binary for the native Python rules of Bazel."""
import unittest
from fib import Fib
from lib import GetNumber
class TestGetNumber(unittest.TestCase):
def test_ok(self):
self.assertEquals(GetNumber(), 42)
def test_fib(self):
self.assertEquals(Fib(5), 8)
if __name__ == '__main__':
unittest.main()
|