virt: Modify 'test_modules' to be a dictionary

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1277 from liyangfnst/virt_py

virt: Modify 'test_modules' to be a dictionary