"""
import os
+import re
import sys
import subprocess
raise qa_error.Error('%r != %r' % (first, second))
+def AssertMatch(string, pattern):
+ """Raises an error when string doesn't match regexp pattern.
+
+ """
+ if not re.match(pattern, string):
+ raise qa_error.Error("%r doesn't match /%r/" % (string, pattern))
+
+
def GetSSHCommand(node, cmd, strict=True):
"""Builds SSH command to be executed.