unit-test: Fix PEP8 E731 violation

E731: do not assign a lambda expression, use a def

Change-Id: Ie9bbbfbd6298bef2e1131ba1de72ed5594341c84
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
1 file changed