aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py_native/test.py')
-rw-r--r--examples/py_native/test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/py_native/test.py b/examples/py_native/test.py
new file mode 100644
index 0000000000..811eee144e
--- /dev/null
+++ b/examples/py_native/test.py
@@ -0,0 +1,13 @@
+"""A tiny example binary for the native Python rules of Bazel."""
+import unittest
+from examples.py_native.lib import GetNumber
+
+
+class TestGetNumber(unittest.TestCase):
+
+ def test_ok(self):
+ self.assertEquals(GetNumber(), 42)
+
+
+if __name__ == '__main__':
+ unittest.main()