@pytest.mark.parametrize('string,fmt', [('2011-1-1', '%Y-%m-%d'), ('1/1/2011', '%m/%d/%Y'), ('30-1-2011', '%d-%m-%Y'), ('2011-1-1 0:0:0', '%Y-%m-%d %H:%M:%S'), ('2011-1-3T00:00:0', '%Y-%m-%dT%H:%M:%S'), ('2011-1-1 00:00:00', '%Y-%m-%d %H:%M:%S')])
def test_guess_datetime_format_no_padding(string, fmt):
    result = parsing._guess_datetime_format(string)
    assert (result == fmt)
@pytest.mark.parametrize('string,fmt', [('2011-1-1', '%Y-%m-%d'), ('1/1/2011', '%m/%d/%Y'), ('30-1-2011', '%d-%m-%Y'), ('2011-1-1 0:0:0', '%Y-%m-%d %H:%M:%S'), ('2011-1-3T00:00:0', '%Y-%m-%dT%H:%M:%S'), ('2011-1-1 00:00:00', '%Y-%m-%d %H:%M:%S')])
def test_guess_datetime_format_no_padding(string, fmt):
    result = parsing._guess_datetime_format(string)
    assert (result == fmt)