summaryrefslogtreecommitdiffstats
path: root/tests/date/test_construct.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/date/test_construct.py')
-rw-r--r--tests/date/test_construct.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/date/test_construct.py b/tests/date/test_construct.py
new file mode 100644
index 0000000..615ca80
--- /dev/null
+++ b/tests/date/test_construct.py
@@ -0,0 +1,15 @@
+from pendulum import Date
+
+from ..conftest import assert_date
+
+
+def test_construct():
+ d = Date(2016, 10, 20)
+
+ assert_date(d, 2016, 10, 20)
+
+
+def test_today():
+ d = Date.today()
+
+ assert isinstance(d, Date)