Did I find the right examples for you? yes no

All Samples(36)  |  Call(36)  |  Derive(0)  |  Import(0)
Simply create a tree fragment using the name of the test-case in parse errors.

src/p/l/plexnet-HEAD/third_party/python/Cython/Compiler/Tests/TestTreeFragment.py   plexnet(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/Tests/TestTreeFragment.py   essig(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)

src/c/y/Cython-0.20.1/Cython/Compiler/Tests/TestTreeFragment.py   Cython(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)

src/c/y/cython-HEAD/Cython/Compiler/Tests/TestTreeFragment.py   cython(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Tests/TestTreeFragment.py   CythonCTypesBackend(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)

src/p/y/pylibs-HEAD/Cython/Compiler/Tests/TestTreeFragment.py   pylibs(Download)
    def test_basic(self):
        F = self.fragment(u"x = 4")
        T = F.copy()
        self.assertCode(u"x = 4", T)
 
    def test_copy_is_taken(self):
        F = self.fragment(u"if True: x = 4")
    def test_substitution(self):
        F = self.fragment(u"x = 4")
        y = NameNode(pos=None, name=u"y")
        T = F.substitute({"x" : y})
        self.assertCode(u"y = 4", T)
 
    def test_exprstat(self):
        F = self.fragment(u"PASS")
    def test_pos_is_transferred(self):
        F = self.fragment(u"""
        x = y
        x = u * v ** w
        """)