Skip to content

Commit

Permalink
Add descriptions to interval assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
lauft committed Jan 19, 2019
1 parent 6958c3a commit 42acf83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/export.t 100755 → 100644
Expand Up @@ -131,12 +131,13 @@ class TestExport(TestCase):
j = self.t.export() j = self.t.export()


self.assertEqual(len(j), 2) self.assertEqual(len(j), 2)

self.assertClosedInterval(j[0], self.assertClosedInterval(j[0],
description="interval before exclusion (before change)",
expectedStart="{:%Y%m%dT%H%M%S}Z".format(five_hours_before_utc), expectedStart="{:%Y%m%dT%H%M%S}Z".format(five_hours_before_utc),
expectedEnd="{:%Y%m%dT%H%M%S}Z".format(four_hours_before_utc), expectedEnd="{:%Y%m%dT%H%M%S}Z".format(four_hours_before_utc),
expectedTags=["foo"]) expectedTags=["foo"])
self.assertOpenInterval(j[1], self.assertOpenInterval(j[1],
description="interval after exclusion (before change)",
expectedStart="{:%Y%m%dT%H%M%S}Z".format(three_hours_before_utc), expectedStart="{:%Y%m%dT%H%M%S}Z".format(three_hours_before_utc),
expectedTags=["foo"]) expectedTags=["foo"])


Expand All @@ -146,10 +147,12 @@ class TestExport(TestCase):


self.assertEqual(len(j), 2) self.assertEqual(len(j), 2)
self.assertClosedInterval(j[0], self.assertClosedInterval(j[0],
description="interval before exclusion (after change)",
expectedStart="{:%Y%m%dT%H%M%S}Z".format(five_hours_before_utc), expectedStart="{:%Y%m%dT%H%M%S}Z".format(five_hours_before_utc),
expectedEnd="{:%Y%m%dT%H%M%S}Z".format(three_hours_before_utc), expectedEnd="{:%Y%m%dT%H%M%S}Z".format(three_hours_before_utc),
expectedTags=["foo"]) expectedTags=["foo"])
self.assertOpenInterval(j[1], self.assertOpenInterval(j[1],
description="interval after exclusion (after change)",
expectedStart="{:%Y%m%dT%H%M%S}Z".format(two_hours_before_utc), expectedStart="{:%Y%m%dT%H%M%S}Z".format(two_hours_before_utc),
expectedTags=["foo"]) expectedTags=["foo"])


Expand Down

0 comments on commit 42acf83

Please sign in to comment.