Coverage for /home/jenkins/workspace/NDS/Zserio/NDS_ZSERIO-linux-build/compiler/extensions/python/runtime/tests/test_pubsub.py: 100%
15 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-12-13 15:12 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2023-12-13 15:12 +0000
1import unittest
3from zserio import PubsubInterface
5class PubsubTest(unittest.TestCase):
6 def test_publish(self):
7 pubsub = PubsubInterface()
8 with self.assertRaises(NotImplementedError):
9 pubsub.publish("topic", bytes(), None)
11 def test_subscribe(self):
12 pubsub = PubsubInterface()
13 with self.assertRaises(NotImplementedError):
14 pubsub.subscribe("topic", None, None)
16 def test_unsubscribe(self):
17 pubsub = PubsubInterface()
18 with self.assertRaises(NotImplementedError):
19 pubsub.unsubscribe(0)