highlight the fact that we do not handle plain datetime objects

Which is un-nice.
1 files changed, 9 insertions(+), 0 deletions(-)

M test/test_api.py
M test/test_api.py +9 -0
@@ 1,6 1,7 @@ 
 import pandas as pd
 import pytest
 import datetime as dt
+import pytz
 
 from tshistory import tsio
 from tshistory.testutil import (

          
@@ 222,6 223,14 @@ 2020-10-25 03:00:00+01:00    2.0
 2020-10-25 04:00:00+01:00    3.0
 """, ts)
 
+    with pytest.raises(AttributeError):
+        ts = client.get(
+            'test_dates',
+            revision_date=utcdt(2020, 10, 1),
+            from_value_date=pytz.UTC.localize(dt.datetime(2020, 10, 25)),
+            to_value_date=dt.datetime(2020, 10, 25, 4)
+        )
+
 
 def test_staircase_history(client):
     # each days we insert 7 data points