Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/p/y/Py2C-HEAD/tests/test_translator.py   Py2C(Download)
    def test_assert(self):
        self.template([
            ("assert False", python.Assert(
                python.Name("False", python.Load()), None
            )),
            ("assert False, msg", python.Assert(
                python.Name("False", python.Load()),
                python.Name("msg", python.Load()),
            ("a = b", python.Assign(
                targets=(python.Name("a", python.Store()),),
                value=python.Name("b", python.Load()),
            )),
            ("a = b = c", python.Assign(
                targets=(
                    python.Name("a", python.Store()),
                    python.Name("b", python.Store()),
                ),
                value=python.Name("c", python.Load()),