stretchr/testify — pull request #21 by viblo (2013-09-12 05:54:00+00:00)
Title: Feature within duration

New assertion WithinDuration that asserts that two time.Time are within time.Duration of each other. Its useful when you dont know the exact time. A common example is if the tested method set a Created field on a struct to time.Now() and you want to assert that it was in fact set correctly.