Skip to content

Commit

Permalink
Add regression test for regex based output matching.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed May 15, 2019
1 parent c0d4651 commit 0d6686c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import os
import re
import sys
import unittest

Expand Down Expand Up @@ -157,6 +158,13 @@ def test_strict_proc_matching_false(self):
strict_proc_matching=False
)

def test_regex_matching(self):
assertInStdout(
self.proc_output,
re.compile(r'Called with arguments \S+'),
'terminating_proc-2'
)

def test_arguments_disambiguate_processes(self):
txt = self.EXPECTED_TEXT
assertInStdout(self.proc_output, txt, 'terminating_proc', '--extra')
Expand Down

0 comments on commit 0d6686c

Please sign in to comment.