Add tests for intervals enclosing month borders

This commit is contained in:
Thomas Lauf 2018-09-18 20:09:01 +02:00
parent fef522c53d
commit 2f7e247859
8 changed files with 80 additions and 1 deletions

View file

@ -186,6 +186,16 @@ class TestMove(TestCase):
expectedTags=[],
description="unmodified interval")
def test_move_interval_to_enclose_a_month_border(self):
"""Move an interval to enclose a month border"""
self.t("track 20180831T180000 - 20180831T230000 foo")
self.t("move @1 20180831T220000")
j = self.t.export()
self.assertEqual(len(j), 1)
self.assertClosedInterval(j[0])
# TODO Add :adjust tests.