String format ok. Traceback (most recent call last): File "test.py", line 249, in <module> assert t.strftime('%f') == '%f' AssertionError