def METHOD_NAME(self):
    field = VariableString(1, "test", 1, 22, 'T', strict=True)
    # 1
    orig = b'1992,002,00:00:00.0000~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1992, 1, 2)
    assert field.write(dt) == b'1992,002~'
    # 1
    orig = b'1992,002~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1992, 1, 2)
    assert field.write(dt) == b'1992,002~'
    # 2
    orig = b'1992,005,01:02:03.4567~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1992, 1, 5, 1, 2, 3, 456700)
    assert field.write(dt) == orig
    # 3
    orig = b'1992,005,01:02:03.0001~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1992, 1, 5, 1, 2, 3, 100)
    assert field.write(dt) == orig
    # 4
    orig = b'1992,005,01:02:03.1000~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1992, 1, 5, 1, 2, 3, 100000)
    assert field.write(dt) == orig
    # 5
    orig = b'1987,023,04:23:05.1~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1987, 1, 23, 4, 23, 5, 100000)
    assert field.write(dt) == b'1987,023,04:23:05.1000~'
    # 6
    orig = b'1987,023,04:23:05.123~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(1987, 1, 23, 4, 23, 5, 123000)
    assert field.write(dt) == b'1987,023,04:23:05.1230~'
    #
    orig = b'2008,358,01:30:22.0987~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(2008, 12, 23, 1, 30, 22, 98700)
    assert field.write(dt) == orig
    #
    orig = b'2008,358,01:30:22.9876~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(2008, 12, 23, 1, 30, 22, 987600)
    assert field.write(dt) == orig
    #
    orig = b'2008,358,01:30:22.0005~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(2008, 12, 23, 1, 30, 22, 500)
    assert field.write(dt) == orig
    #
    orig = b'2008,358,01:30:22.0000~'
    dt = field.read(io.BytesIO(orig))
    assert dt == UTCDateTime(2008, 12, 23, 1, 30, 22, 0)
    assert field.write(dt) == orig