def test_resume_switch(self): import bin.redi redi = reload(bin.redi) args = redi.parse_args('--verbose --dryrun'.split()) self.assertFalse(args['resume']) args = redi.parse_args('--resume --verbose --dryrun'.split()) self.assertTrue(args['resume'])
def test_switch(self): """Test to check --skip-blanks and document its usage""" # pylint: disable=W0622 import bin.redi redi = reload(bin.redi) args = redi.parse_args('--verbose --skip-blanks'.split()) self.assertTrue(args['skip_blanks']) args = redi.parse_args('--verbose'.split()) self.assertFalse(args['skip_blanks'])