def test3(self):
        self.trytext("add_plugin('test_larch_plugin')")
        self.trytext("a = _tests.add_scale(3, 5)")
        self.isValue('a', 11)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(3, 5, scale=2)")
        self.isValue('a', 22)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(3, 5, scale=0)")
        self.isValue('a', 0)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(3, 5, 3)")
        self.isValue('a', 33)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(y=1, scale=10, x=1)")
        self.isValue('a', 30)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(scale=10, y=1, x=1)")
        self.isValue('a', 30)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale('a', 'b', scale=3)")
        self.isValue('a', 'aabaabaab')
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(scale=10, y=1, x=1)")
        self.isValue('a', 30)
        self.NoExceptionRaised()

        self.trytext("a = _tests.add_scale(x=1, x=2)")
        self.ExceptionRaised()

        self.trytext("a = _tests.add_scale(y=1, y=2)")
        self.ExceptionRaised()

        self.trytext("a = _tests.add_scale(1, 2, 3, 4)")
        self.ExceptionRaised()
test function with 2 arguments and keyword argument
dataset/ETHPy150Open xraypy/xraylarch/tests/test_plugins_call.py/TestPlugins.test3