!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/lib/pymodules/python2.6/epsilon/test/   drwxr-xr-x
Free 129.75 GB of 142.11 GB (91.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_setuphelper.py (2.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

import sys

from twisted.trial import unittest
from twisted.python import log
from twisted.python.reflect import namedAny
from epsilon.setuphelper import _regeneratePluginCache

class TestCacheRegeneration(unittest.TestCase):
    removeModules = []
    def setUp(self):
        self.removedModules = []
        for modname in self.removeModules:
            try:
                module = namedAny(modname)
                self.removedModules.append(module)
            except:
                print 'COULD NOT LOAD', modname
        self.sysmodules = sys.modules.copy()
        self.syspath = sys.path[:]

        for module in self.removedModules:
            for ent in self.syspath:
                if module.__file__.startswith(ent):
                    while ent in sys.path:
                        sys.path.remove(ent)
            rem = 0
            for modname in self.sysmodules:
                if modname.startswith(module.__name__):
                    rem += 1
                    sys.modules.pop(modname)
            assert rem, 'NO HITS: %r:%r' % (module,module.__name__)

    def testRegeneratingIt(self):
        for mod in self.removedModules:
            self.failIf(mod.__name__ in sys.modules, 'Started with %r loaded: %r' % (mod.__name__, sys.path))
        _regeneratePluginCache(['axiom', 'xmantissa'])
        log.flushErrors(ImportError) # This is necessary since there are Axiom
                                     # plugins that depend on Mantissa, so when
                                     # Axiom is installed, Mantissa-dependent
                                     # powerups are, but Mantissa isn't some
                                     # harmless tracebacks are printed.
        for mod in self.removedModules:
            self.failIf(mod.__name__ in sys.modules, 'Loaded %r: %r' % (mod.__name__, sys.path))

    testRegeneratingIt.skip = """
    This test really ought to be the dependency-direction test from old
    Quotient.  As it currently stands it's just broken.
    """

    def tearDown(self):
        sys.path[:] = self.syspath
        sys.modules.clear()
        sys.modules.update(self.sysmodules)

class WithoutAxiom(TestCacheRegeneration):
    removeModules = ['axiom']

class WithoutMantissa(TestCacheRegeneration):
    removeModules = ['xmantissa']

class WithoutEither(TestCacheRegeneration):
    removeModules = ['xmantissa', 'axiom']

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0197 ]--