validate: Restructured autoAdjust code

- First approach indicates there is no general case. Instead identifiable and
  correctable use cases will be gathered. No solution yet.
This commit is contained in:
Paul Beckingham 2016-07-16 11:17:14 -04:00
parent 14ca159df4
commit 36455b5115
2 changed files with 39 additions and 36 deletions

View file

@ -116,7 +116,7 @@ class TestTrack(TestCase):
"""Test adding an overlapping interval fails"""
self.t("track 20160709T1400 - 20160709T1500 foo")
code, out, err = self.t.runError("track 20160709T1430 - 20160709T1530 foo")
self.assertIn('You cannot overlap intervals. Adjust the start/end time, or specify the :adjust hint.', err)
self.assertIn('You cannot overlap intervals. Correct the start/end time, or specify the :adjust hint.', err)
if __name__ == "__main__":
from simpletap import TAPTestRunner