Remove `skip-string-normalization` in Python formatter config
[babeltrace.git] / tests / plugins / sink.text.pretty / test_pretty.py
CommitLineData
440ffe59
SM
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Copyright (C) 2020 EfficiOS, Inc.
4
5import unittest
6import bt2
7
8
9class Test(unittest.TestCase):
10 # Test that the component returns an error if the graph is configured while
11 # the component's input port is left disconnected.
12 def test_unconnected_port_raises(self):
13 graph = bt2.Graph()
14 graph.add_component(
f5567ea8 15 bt2.find_plugin("text").sink_component_classes["pretty"], "snk"
440ffe59
SM
16 )
17
18 with self.assertRaisesRegex(
19 bt2._Error, 'Single input port is not connected: port-name="in"'
20 ):
21 graph.run()
22
23
f5567ea8 24if __name__ == "__main__":
440ffe59 25 unittest.main()
This page took 0.0278 seconds and 4 git commands to generate.