def test_add_inconsistent_dimension(self):
     """Add two transfer function matrices of different sizes."""
     sys1 = TransferFunction([[[1., 2.]]], [[[4., 5.]]])
     sys2 = TransferFunction([[[4., 3.]], [[1., 2.]]],
                             [[[1., 6.]], [[2., 4.]]])
     with pytest.raises(ValueError):
         sys1.__add__(sys2)
     with pytest.raises(ValueError):
         sys1.__sub__(sys2)
     with pytest.raises(ValueError):
         sys1.__radd__(sys2)
     with pytest.raises(ValueError):
         sys1.__rsub__(sys2)