summaryrefslogtreecommitdiffstats
path: root/tests/date/test_construct.py
blob: 615ca80daebf4c7b55a408dbb693c3c298d0d7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)