libvirt.tests: Fix seaching error for remote domstate.

Output from remote host may contain space lines, directly
matched will not work.So replace it with searching.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>