s = remove_tags(html)
self.failUnlessIn("Expiration Enabled:"
" expired leases will be removed", s)
- date = time.strftime("%Y-%m-%d", time.gmtime(then))
+ date = time.strftime("%d-%b-%Y", time.gmtime(then))
self.failUnlessIn("Leases created or last renewed before %s"
" will be considered expired." % date, s)
self.failUnlessIn(" recovered: 2 shares, 2 buckets (1 mutable / 1 immutable), ", s)
% abbreviate_time(lc.override_lease_duration)]
else:
assert lc.mode == "cutoff-date"
- date = time.strftime("%Y-%m-%d", time.gmtime(lc.cutoff_date))
+ date = time.strftime("%d-%b-%Y", time.gmtime(lc.cutoff_date))
ctx.tag["Leases created or last renewed before %s "
"will be considered expired." % date]
if len(lc.mode) > 2: