diff options
Diffstat (limited to 'examples/py_native/test.py')
-rw-r--r-- | examples/py_native/test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/py_native/test.py b/examples/py_native/test.py index 811eee144e..f9543aa727 100644 --- a/examples/py_native/test.py +++ b/examples/py_native/test.py @@ -1,6 +1,8 @@ """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): @@ -8,6 +10,8 @@ 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() |