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

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/lib/python2.2/test/   drwxr-xr-x
Free 318.28 GB of 458.09 GB (69.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_dospath.py (2.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import dospath
import test_support
import unittest


class DOSPathTestCase(unittest.TestCase):

    def test_abspath(self):
        self.assert_(dospath.abspath("C:\\") == "C:\\")

    def test_isabs(self):
        isabs = dospath.isabs
        self.assert_(isabs("c:\\"))
        self.assert_(isabs("\\\\conky\\mountpoint\\"))
        self.assert_(isabs("\\foo"))
        self.assert_(isabs("\\foo\\bar"))
        self.failIf(isabs("foo"))
        self.failIf(isabs("foo\\"))
        self.failIf(isabs("foo\\bar"))
        self.failIf(isabs("c:foo"))
        self.failIf(isabs("c:foo\\"))
        self.failIf(isabs("c:foo\\bar"))

    def test_commonprefix(self):
        commonprefix = dospath.commonprefix
        self.assert_(commonprefix(["/home/swenson/spam", "/home/swen/spam"])
                     == "/home/swen")
        self.assert_(commonprefix(["\\home\\swen\\spam", "\\home\\swen\\eggs"])
                     == "\\home\\swen\\")
        self.assert_(commonprefix(["/home/swen/spam", "/home/swen/spam"])
                     == "/home/swen/spam")

    def test_split(self):
        split = dospath.split
        self.assertEquals(split("c:\\foo\\bar"),
                          ('c:\\foo', 'bar'))
        self.assertEquals(split("\\\\conky\\mountpoint\\foo\\bar"),
                          ('\\\\conky\\mountpoint\\foo', 'bar'))

        self.assertEquals(split("c:\\"), ('c:\\', ''))
        self.assertEquals(split("\\\\conky\\mountpoint\\"),
                          ('\\\\conky\\mountpoint', ''))

        self.assertEquals(split("c:/"), ('c:/', ''))
        self.assertEquals(split("//conky/mountpoint/"),
                          ('//conky/mountpoint', ''))

    def test_splitdrive(self):
        splitdrive = dospath.splitdrive
        self.assertEquals(splitdrive("c:\\foo\\bar"), ('c:', '\\foo\\bar'))
        self.assertEquals(splitdrive("c:/foo/bar"), ('c:', '/foo/bar'))
        self.assertEquals(splitdrive("foo\\bar"), ('', 'foo\\bar'))
        self.assertEquals(splitdrive("c:"), ('c:', ''))


def test_main():
    test_support.run_unittest(DOSPathTestCase)


if __name__ == "__main__":
    test_main()

:: 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 #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0253 ]--