tests: Use updated unittest method

This commit is contained in:
Tomas Babej
2020-11-20 23:59:56 -05:00
committed by Paul Beckingham
parent 407d66d681
commit 02db131fa1
50 changed files with 315 additions and 315 deletions

View File

@@ -58,7 +58,7 @@ class TestSequences(TestCase):
"""Test sequences in start/stop"""
self.t("1,2 start")
code, out, err = self.t("_get 1.start 2.start")
self.assertRegexpMatches(out, "\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2} \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\n")
self.assertRegex(out, "\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2} \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\n")
self.t("1,2 stop")
code, out, err = self.t("_get 1.start 2.start")