tests: Fix incorrect assert method
This commit is contained in:
@@ -174,7 +174,7 @@ class TestUdaDuration(TestBaseUda):
|
|||||||
|
|
||||||
# Ensure 'extra' is stored in original form.
|
# Ensure 'extra' is stored in original form.
|
||||||
code, out, err = self.t("1 export")
|
code, out, err = self.t("1 export")
|
||||||
self.assertRaisesRegexp(out, '"extra":"P1D"')
|
self.assertRegexpMatches(out, '"extra":"P1D"')
|
||||||
|
|
||||||
def test_uda_bad_duration_task(self):
|
def test_uda_bad_duration_task(self):
|
||||||
"""Add tasks with an invalid UDA duration"""
|
"""Add tasks with an invalid UDA duration"""
|
||||||
|
|||||||
Reference in New Issue
Block a user