def METHOD_NAME(self):
    with self.assertRaises(RuntimeError):
        @signature_has_traits
        class Foo(HasTraits):
            number1 = Int()
            number2 = Int()
            def __init__(self, arg1, arg2=None):
                pass