tests: Fix incorrect assert method

This commit is contained in:
Tomas Babej 2019-01-01 19:34:24 -05:00 committed by Paul Beckingham
parent 9e7f259d03
commit 74949bb049

View file

@ -174,7 +174,7 @@ class TestUdaDuration(TestBaseUda):
# Ensure 'extra' is stored in original form.
code, out, err = self.t("1 export")
self.assertRaisesRegexp(out, '"extra":"P1D"')
self.assertRegexpMatches(out, '"extra":"P1D"')
def test_uda_bad_duration_task(self):
"""Add tasks with an invalid UDA duration"""