VirtualBox

Ignore:
Timestamp:
Jun 22, 2016 9:27:36 PM (8 years ago)
Author:
vboxsync
Message:

tdAdd*.py: pylint 1.5.5 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r57289 r61835  
    409409    def __init__(self, aoSteps = None, enmUser = None):
    410410        tdTestGuestCtrlBase.__init__(self);
    411         assert enmUser == None; # For later.
     411        assert enmUser is None; # For later.
    412412        self.enmUser = enmUser;
    413413        self.aoSteps = aoSteps if aoSteps is not None else [];
     
    420420        # Create a session.
    421421        #
    422         assert self.enmUser == None; # For later.
     422        assert self.enmUser is None; # For later.
    423423        self.oCreds = tdCtxCreds(oTestVm = oTestVm);
    424424        self.setEnvironment(oVmSession, oTxsSession, oTestVm);
     
    965965        reporter.testStart('Session Basics');
    966966        fSkip = 'session_basic' not in self.asTests;
    967         if fSkip == False:
     967        if fSkip is False:
    968968            fRc, oTxsSession = self.testGuestCtrlSession(oSession, oTxsSession, oTestVm);
    969969        reporter.testDone(fSkip);
     
    971971        reporter.testStart('Session Environment');
    972972        fSkip = 'session_env' not in self.asTests or fRc is False;
    973         if fSkip == False:
     973        if fSkip is False:
    974974            fRc, oTxsSession = self.testGuestCtrlSessionEnvironment(oSession, oTxsSession, oTestVm);
    975975        reporter.testDone(fSkip);
     
    977977        reporter.testStart('Session File References');
    978978        fSkip = 'session_file_ref' not in self.asTests;
    979         if fSkip == False:
     979        if fSkip is False:
    980980            fRc, oTxsSession = self.testGuestCtrlSessionFileRefs(oSession, oTxsSession, oTestVm);
    981981        reporter.testDone(fSkip);
     
    984984        #reporter.testStart('Session Directory References');
    985985        #fSkip = 'session_dir_ref' not in self.asTests;
    986         #if fSkip == False:
     986        #if fSkip is False:
    987987        #    fRc, oTxsSession = self.testGuestCtrlSessionDirRefs(oSession, oTxsSession, oTestVm);
    988988        #reporter.testDone(fSkip);
     
    990990        reporter.testStart('Session Process References');
    991991        fSkip = 'session_proc_ref' not in self.asTests or fRc is False;
    992         if fSkip == False:
     992        if fSkip is False:
    993993            fRc, oTxsSession = self.testGuestCtrlSessionProcRefs(oSession, oTxsSession, oTestVm);
    994994        reporter.testDone(fSkip);
     
    996996        reporter.testStart('Execution');
    997997        fSkip = 'exec_basic' not in self.asTests or fRc is False;
    998         if fSkip == False:
     998        if fSkip is False:
    999999            fRc, oTxsSession = self.testGuestCtrlExec(oSession, oTxsSession, oTestVm);
    10001000        reporter.testDone(fSkip);
     
    10021002        reporter.testStart('Execution Error Levels');
    10031003        fSkip = 'exec_errorlevel' not in self.asTests or fRc is False;
    1004         if fSkip == False:
     1004        if fSkip is False:
    10051005            fRc, oTxsSession = self.testGuestCtrlExecErrorLevel(oSession, oTxsSession, oTestVm);
    10061006        reporter.testDone(fSkip);
     
    10081008        reporter.testStart('Execution Timeouts');
    10091009        fSkip = 'exec_timeout' not in self.asTests or fRc is False;
    1010         if fSkip == False:
     1010        if fSkip is False:
    10111011            fRc, oTxsSession = self.testGuestCtrlExecTimeout(oSession, oTxsSession, oTestVm);
    10121012        reporter.testDone(fSkip);
     
    10141014        reporter.testStart('Creating directories');
    10151015        fSkip = 'dir_create' not in self.asTests or fRc is False;
    1016         if fSkip == False:
     1016        if fSkip is False:
    10171017            fRc, oTxsSession = self.testGuestCtrlDirCreate(oSession, oTxsSession, oTestVm);
    10181018        reporter.testDone(fSkip);
     
    10201020        reporter.testStart('Creating temporary directories');
    10211021        fSkip = 'dir_create_temp' not in self.asTests or fRc is False;
    1022         if fSkip == False:
     1022        if fSkip is False:
    10231023            fRc, oTxsSession = self.testGuestCtrlDirCreateTemp(oSession, oTxsSession, oTestVm);
    10241024        reporter.testDone(fSkip);
     
    10261026        reporter.testStart('Reading directories');
    10271027        fSkip = 'dir_read' not in self.asTests or fRc is False;
    1028         if fSkip == False:
     1028        if fSkip is False:
    10291029            fRc, oTxsSession = self.testGuestCtrlDirRead(oSession, oTxsSession, oTestVm);
    10301030        reporter.testDone(fSkip);
     
    10331033        # reporter.testStart('Copy to guest');
    10341034        # fSkip = 'copy_to' not in self.asTests or fRc is False;
    1035         # if fSkip == False:
     1035        # if fSkip is False:
    10361036        #     fRc, oTxsSession = self.testGuestCtrlCopyTo(oSession, oTxsSession, oTestVm);
    10371037        # reporter.testDone(fSkip);
     
    10391039        reporter.testStart('Copy from guest');
    10401040        fSkip = 'copy_from' not in self.asTests or fRc is False;
    1041         if fSkip == False:
     1041        if fSkip is False:
    10421042            fRc, oTxsSession = self.testGuestCtrlCopyFrom(oSession, oTxsSession, oTestVm);
    10431043        reporter.testDone(fSkip);
     
    10451045        reporter.testStart('Removing files');
    10461046        fSkip = 'file_remove' not in self.asTests or fRc is False;
    1047         if fSkip == False:
     1047        if fSkip is False:
    10481048            fRc, oTxsSession = self.testGuestCtrlFileRemove(oSession, oTxsSession, oTestVm);
    10491049        reporter.testDone(fSkip);
     
    10511051        reporter.testStart('Querying file information (stat)');
    10521052        fSkip = 'file_stat' not in self.asTests or fRc is False;
    1053         if fSkip == False:
     1053        if fSkip is False:
    10541054            fRc, oTxsSession = self.testGuestCtrlFileStat(oSession, oTxsSession, oTestVm);
    10551055        reporter.testDone(fSkip);
     
    10581058        # reporter.testStart('File read');
    10591059        # fSkip = 'file_read' not in self.asTests or fRc is False;
    1060         # if fSkip == False:
     1060        # if fSkip is False:
    10611061        #     fRc, oTxsSession = self.testGuestCtrlFileRead(oSession, oTxsSession, oTestVm);
    10621062        # reporter.testDone(fSkip);
     
    10641064        # reporter.testStart('File write');
    10651065        # fSkip = 'file_write' not in self.asTests or fRc is False;
    1066         # if fSkip == False:
     1066        # if fSkip is False:
    10671067        #     fRc, oTxsSession = self.testGuestCtrlFileWrite(oSession, oTxsSession, oTestVm);
    10681068        # reporter.testDone(fSkip);
     
    10721072        # Skip test for updating Guest Additions if we run on a too old (Windows) guest.
    10731073        fSkip = oTestVm.sKind in ('WindowsNT4', 'Windows2000', 'WindowsXP', 'Windows2003');
    1074         if fSkip == False:
     1074        if fSkip is False:
    10751075            fRc, oTxsSession = self.testGuestCtrlUpdateAdditions(oSession, oTxsSession, oTestVm);
    10761076        reporter.testDone(fSkip);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette