!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/share/pyshared/epsilon/test/   drwxr-xr-x
Free 130.06 GB of 142.11 GB (91.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_process.py (2.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# Copyright (c) 2008 Divmod.  See LICENSE for details.

"""
Tests for L{epsilon.process}.
"""

from zope.interface.verify import verifyObject

from twisted.trial.unittest import TestCase
from twisted.application.service import IService, MultiService
from twisted.internet.protocol import Protocol

from epsilon import process


class StandardIOServiceTests(TestCase):
    """
    Tests for L{StandardIOService}, an L{IService} implementation which
    associates a L{IProtocol} provider with stdin and stdout when it is
    started.
    """
    def test_interface(self):
        """
        L{StandardIOService} instances provide L{IService}.
        """
        verifyObject(IService, process.StandardIOService(None))


    def test_startService(self):
        """
        L{StandardIOService.startService} connects a protocol to a standard io
        transport.
        """
        # This sucks.  StandardIO sucks.  APIs should be testable.
        L = []
        self.patch(process, 'StandardIO', L.append)
        proto = Protocol()
        service = process.StandardIOService(proto)
        service.startService()
        self.assertEqual(L, [proto])


    def test_setName(self):
        """
        L{StandardIOService.setName} sets the C{name} attribute.
        """
        service = process.StandardIOService(None)
        service.setName("foo")
        self.assertEqual(service.name, "foo")


    def test_setServiceParent(self):
        """
        L{StandardIOService.setServiceParent} sets the C{parent} attribute and
        adds the service as a child of the given parent.
        """
        parent = MultiService()
        service = process.StandardIOService(None)
        service.setServiceParent(parent)
        self.assertEqual(list(parent), [service])
        self.assertIdentical(service.parent, parent)


    def test_disownServiceParent(self):
        """
        L{StandardIOService.disownServiceParent} sets the C{parent} attribute
        to C{None} and removes the service from the parent's child list.
        """
        parent = MultiService()
        service = process.StandardIOService(None)
        service.setServiceParent(parent)
        service.disownServiceParent()
        self.assertEqual(list(parent), [])
        self.assertIdentical(service.parent, None)

:: 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.0189 ]--