Skip to content

Commit 80e4f3b

Browse files
author
Adrian Huber
committed
add domain test for placement_group
1 parent bc47610 commit 80e4f3b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import datetime
2+
from dateutil.tz import tzoffset
3+
4+
from hcloud.placement_groups.domain import PlacementGroup
5+
6+
7+
class TestPlacementGroup(object):
8+
9+
def test_created_is_datetime(self):
10+
placement_group = PlacementGroup(id=1, created="2016-01-30T23:50+00:00")
11+
assert placement_group.created == datetime.datetime(2016, 1, 30, 23, 50, tzinfo=tzoffset(None, 0))

0 commit comments

Comments
 (0)