!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/4Suite/tests/Xml/XPath/Core/   drwxr-xr-x
Free 2.25 GB of 27.03 GB (8.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_location_path.py (2.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
def Test(tester):

    tester.startGroup('Location path expressions')

    tester.startTest('Creating test environment')
    from Ft.Xml.XPath.ParsedAbbreviatedAbsoluteLocationPath import ParsedAbbreviatedAbsoluteLocationPath
    from Ft.Xml.XPath.ParsedAbbreviatedRelativeLocationPath import ParsedAbbreviatedRelativeLocationPath
    from Ft.Xml.XPath.ParsedAbsoluteLocationPath import ParsedAbsoluteLocationPath
    from Ft.Xml.XPath.ParsedRelativeLocationPath import ParsedRelativeLocationPath
    from Ft.Xml.XPath import ParsedStep
    from Ft.Xml.XPath import ParsedNodeTest
    from Ft.Xml.XPath import ParsedAxisSpecifier
    from Ft.Xml.XPath import Context

    DomTree = tester.test_data['tree']

    nt = ParsedNodeTest.ParsedNameTest('*')
    as = ParsedAxisSpecifier.ParsedAxisSpecifier('child')
    step = ParsedStep.ParsedStep(as,nt,None)
    # [(expression, context, expected)...]
    tests = [(ParsedAbbreviatedAbsoluteLocationPath(step),
              Context.Context(DomTree.CHILD2, 1, 1),
              # all element children
              [DomTree.ROOT, DomTree.CHILD1] + DomTree.GCHILDREN1 +
              [DomTree.CHILD2] + DomTree.GCHILDREN2 + [DomTree.CHILD3] +
              [DomTree.LANG] + DomTree.LCHILDREN),
             (ParsedAbbreviatedRelativeLocationPath(step, step),
              Context.Context(DomTree.ROOT, 1, 1),
              # all element grand children
              DomTree.GCHILDREN1 + DomTree.GCHILDREN2 + DomTree.LCHILDREN),
             (ParsedAbsoluteLocationPath(None),
              Context.Context(DomTree.CHILD1, 1, 1),
              [DomTree.DOM]),
             (ParsedAbsoluteLocationPath(step),
              Context.Context(DomTree.CHILD1, 1, 1),
              [DomTree.ROOT]),
             (ParsedRelativeLocationPath(step, step),
              Context.Context(DomTree.ROOT, 1, 1),
              DomTree.GCHILDREN1 + DomTree.GCHILDREN2 + DomTree.LCHILDREN),
             ]
    tester.testDone()

    for (location, context, expected) in tests:
        tester.startTest(repr(location))
        actual = location.select(context)
        tester.compare(expected, actual)
        tester.testDone()

    return tester.groupDone()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0035 ]--