aboutsummaryrefslogtreecommitdiff
path: root/examples/py_proto_library/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py_proto_library/test.py')
-rw-r--r--examples/py_proto_library/test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/py_proto_library/test.py b/examples/py_proto_library/test.py
new file mode 100644
index 0000000..9f09702
--- /dev/null
+++ b/examples/py_proto_library/test.py
@@ -0,0 +1,17 @@
+import sys
+import unittest
+
+import pricetag_pb2
+
+
+class TestCase(unittest.TestCase):
+ def test_pricetag(self):
+ got = pricetag_pb2.PriceTag(
+ name="dollar",
+ cost=5.00,
+ )
+ self.assertIsNotNone(got)
+
+
+if __name__ == "__main__":
+ unittest.main()