def METHOD_NAME(self):
    r_set = row_set.from_rows_or_ranges(row_range.open_range("row1", "row5"))
    r_set = row_set.intersect(r_set, row_range.closed_range("row3", "row7"))
    expected = (
        "row_ranges {\n" + '  start_key_closed: "row3"\n' + "  end_key_open: "
        '"row5"\n' + "}\n"
    )
    self.assertEqual(expected, repr(r_set))