Beispiel #1
0
    def test_remove_input(self):
        """
        Test the _remove_input helper method.
        """
        in_com = ComponentBase('', 1, 0)
        out_com = ComponentBase('', 0, 1)

        self.add_input_alias(in_com, out_com, 0)

        in_com._remove_input(out_com)
        self.assertNotIn(in_com, out_com.children)
        self.assertNotIn(out_com, in_com.parents)

        self.assertIsNone(in_com._input_bits[0])