aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native/test.py
blob: f9543aa7272536c621296959caf064c2e4032faf (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 examples.py_native.lib import GetNumber
from fib import Fib


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()