def test_dryrun_toggle_from_on(self): drypy.set_dryrun(True) drypy.toggle_dryrun() self.assertEqual(drypy.get_status(), False)
def test_dryrun_set_on(self): drypy.set_dryrun(True) self.assertEqual(drypy.get_status(), True)
def test_dryrun_set_off(self): drypy.set_dryrun(False) self.assertEqual(drypy.get_status(), False)
def test_get_status(self): # bad manual assignment will make 'get_status' to reset to False drypy._dryrun = 'pippo' self.assertEqual(drypy.get_status(), False)