def test_no_backup(self): args = MockArgParse() args.no_backup = True result = subst._parse_args__get_ext(args) self.assertEqual(result, '')
def test_given_ext_with_dot(self): args = MockArgParse() args.ext = '.jpg' result = subst._parse_args__get_ext(args) self.assertEqual(result, '.' + args.ext)
def test_simple(self): args = MockArgParse() result = subst._parse_args__get_ext(args) self.assertEqual(result, '.' + subst.DEFAULT_BACKUP_EXTENSION)