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

All Samples(33)  |  Call(33)  |  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()),
    def test_assign(self):
        # Tests for type-info below..
        self.template([
            ("a = b", python.Assign(
                targets=(python.Name("a", python.Store()),),
                value=python.Name("b", python.Load()),