'file_match' now handles multi line patterns

This commit is contained in:
Johan Holmberg
2015-06-15 23:15:23 +02:00
parent 58260c5a21
commit a72025c385
2 changed files with 27 additions and 6 deletions

View File

@ -90,6 +90,10 @@ class TC_example(TestCase):
self.create_file("abc.txt", [
'detta är abc.txt',
'räksmörgås',
' aaa',
' bbb',
' ccc',
' ddd',
], encoding='utf-16')
with self.cmd("cat abc.txt") as c:
c.stdout_equal([
@ -102,7 +106,10 @@ class TC_example(TestCase):
'detta är abc.txtx',
'räksmörgås',
], 'utf-16')
c.file_match("abc.txt", "tt", 'utf-16')
c.file_match("abc.txt", [
"xbb",
"ccc",
], 'utf-16')
with self.cmd("true") as c:
pass