I think you can do both checks in one expected_heka_messages call. Just pass a list where the first element is the string, and the second is the tuple.