368afb6cbd0d13b54ccf72d3c28b17ba7a08d0e2
1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2020 EfficiOS, Inc.
9 class 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
):
15 bt2
.find_plugin('text').sink_component_classes
['pretty'], 'snk'
18 with self
.assertRaisesRegex(
19 bt2
._Error
, 'Single input port is not connected: port-name="in"'
24 if __name__
== '__main__':
This page took 0.02893 seconds and 4 git commands to generate.