I would unpack this (test_method_names = [ ... ] ; for test in test_method_names: ...) but not a big deal.