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

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/opt/alt/python27/lib64/python2.7/idlelib/idle_test/   drwxr-xr-x
Free 234.04 GB of 981.82 GB (23.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_helpabout.py (1.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'''Test idlelib.help_about.

Coverage:
'''
from idlelib import aboutDialog as help_about
from idlelib import textView as textview
from idlelib.idle_test.mock_idle import Func
from idlelib.idle_test.mock_tk import Mbox
import unittest

About = help_about.AboutDialog
class Dummy_about_dialog():
    # Dummy class for testing file display functions.
    idle_credits = About.ShowIDLECredits.im_func
    idle_readme = About.ShowIDLEAbout.im_func
    idle_news = About.ShowIDLENEWS.im_func
    # Called by the above
    display_file_text = About.display_file_text.im_func


class DisplayFileTest(unittest.TestCase):
    "Test that .txt files are found and properly decoded."
    dialog = Dummy_about_dialog()

    @classmethod
    def setUpClass(cls):
        cls.orig_mbox = textview.tkMessageBox
        cls.orig_view = textview.view_text
        cls.mbox = Mbox()
        cls.view = Func()
        textview.tkMessageBox = cls.mbox
        textview.view_text = cls.view
        cls.About = Dummy_about_dialog()

    @classmethod
    def tearDownClass(cls):
        textview.tkMessageBox = cls.orig_mbox
        textview.view_text = cls.orig_view.im_func

    def test_file_isplay(self):
        for handler in (self.dialog.idle_credits,
                        self.dialog.idle_readme,
                        self.dialog.idle_news):
            self.mbox.showerror.message = ''
            self.view.called = False
            handler()
            self.assertEqual(self.mbox.showerror.message, '')
            self.assertEqual(self.view.called, True)


if __name__ == '__main__':
    unittest.main(verbosity=2)

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