def test_DateTime_strptime_2args(dt): dt2 = DateTime.strptime(dt.to_string(), DateTime.__format__) assert isinstance(dt2, DateTime)
def test_DateTime_strptime_1arg(dt): dt2 = DateTime.strptime(dt.to_string()) assert isinstance(dt2, DateTime)
def test_DateTime_strptime_2args(dt): dt2 = DateTime.strptime(dt.to_string(), DateTime.__format__) assert isinstance(dt2, DateTime)
def test_DateTime_strptime_1arg(dt): dt2 = DateTime.strptime(dt.to_string()) assert isinstance(dt2, DateTime)