def test_timestamp(self):
    data = [datetime.datetime(2007, 7, 13, 1, 23, 34, 123456), None, datetime.datetime(2006, 1, 13, 12, 34, 56, 432539), datetime.datetime(2010, 8, 13, 5, 46, 57, 437699)]
    arr = pyarrow.from_pylist(data)
    assert (len(arr) == 4)
    assert (arr.type == pyarrow.timestamp('us'))
    assert (arr.null_count == 1)
    assert (arr[0].as_py() == datetime.datetime(2007, 7, 13, 1, 23, 34, 123456))
    assert (arr[1].as_py() is None)
    assert (arr[2].as_py() == datetime.datetime(2006, 1, 13, 12, 34, 56, 432539))
    assert (arr[3].as_py() == datetime.datetime(2010, 8, 13, 5, 46, 57, 437699))
def test_timestamp(self):
    data = [datetime.datetime(2007, 7, 13, 1, 23, 34, 123456), None, datetime.datetime(2006, 1, 13, 12, 34, 56, 432539), datetime.datetime(2010, 8, 13, 5, 46, 57, 437699)]
    arr = pyarrow.from_pylist(data)
    assert (len(arr) == 4)
    assert (arr.type == pyarrow.timestamp('us'))
    assert (arr.null_count == 1)
    assert (arr[0].as_py() == datetime.datetime(2007, 7, 13, 1, 23, 34, 123456))
    assert (arr[1].as_py() is None)
    assert (arr[2].as_py() == datetime.datetime(2006, 1, 13, 12, 34, 56, 432539))
    assert (arr[3].as_py() == datetime.datetime(2010, 8, 13, 5, 46, 57, 437699))