example usage in my case
def json():
  return json.dumps(self.__dict__,default=lambda o: o.__dict__,
                    ensure_ascii=False,indent=4)| def test_python2TooLow(): | |
| with mock.patch.object(sys, 'version_info') as v_info: | |
| v_info.major = 2 | |
| v_info.minor = 7 | |
| assert helper.system.meetsMinSpecs(3, 0) == False | 
example usage in my case
def json():
  return json.dumps(self.__dict__,default=lambda o: o.__dict__,
                    ensure_ascii=False,indent=4)Referenced from https://www.bernhard-baehr.de
use de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist from config folder follow instructions. Remember to chmod required files including the .wakeup in home directory.
| perl -MDevel::Modlist=options program.pl | 
| # Current under Dev | |
| #Drobo Dashboard does not appear to respond to quit command. | |
| # Drobo is the name of the drive to be unmounted. This should be changed to | |
| # your own needs. | |
| tell application "NordVPN" to quit | |
| tell application "Plex Media Server" to quit | |
| tell application "Dropbox" to quit | |
| tell application "Drobo Dashboard" to quit | 
| set diskIsMounted to false | |
| repeat until diskIsMounted is true | |
| delay 30 | |
| tell application "Finder" | |
| if (disk "Drobo" exists) then | |
| set diskIsMounted to true | |
| end if | |
| end tell | |
| end repeat | 
| #!/usr/bin/env bash | |
| # Backup a Plex database. | |
| # Author Scott Smereka | |
| # Ubuntu | |
| # Version 1.0 | |
| # Modified by Shaun Harrison | |
| # Ubuntu | |
| # Version 1.1 | 
| def testValidatePathFile(self): | |
| with self.assertRaises(OSError) as cm: | |
| # self.handle.__ValidatePathFile() | |
| self.handle = exceptman.ExceptionListManager(path="/tm") | |
| err = cm.exception | |
| self.assertEqual(str(err), "[Errno 2] No such file or directory: '/tm'") |