AssertPrints checks for instances of string_types