test intervals

This commit is contained in:
2017-05-15 20:05:00 -04:00
parent 6521a7dbc5
commit 43705d84d6
+6
View File
@@ -202,3 +202,9 @@ def test_comparison_operations():
now > 1
with pytest.raises(TypeError):
now >= 1
def test_intervals():
now = maya.now()
tomorrow = now.add(days=1)
assert len(list(maya.intervals(now, tomorrow, 60*60))) == 24