def test_seconds_to_string(self): timer = Timer() allowed = set(digits + '.') time_string = timer.seconds_to_string(seconds_elapsed=time()) self.assertTrue(set(time_string) <= allowed)