def testCheckOverlay(self):
    # Fully populated hint.
    full = {"problem": "Terminator needs trousers.\n",
            "fix": "Give me your clothes.\n",
            "format": "{mission}, {target}\n",
            "summary": "I'll be back."}
    # Partial hint
    partial = {"problem": "Terminator needs to go shopping.",
               "fix": "Phased plasma rifle in the 40-watt range.",
               "format": "",
               "summary": ""}
    # Partial overlaid with full.
    overlay = {"problem": "Terminator needs to go shopping.",
               "fix": "Phased plasma rifle in the 40-watt range.",
               "format": "{mission}, {target}",
               "summary": "I'll be back."}
    # Empty hint.
    empty = {"problem": "", "fix": "", "format": "", "summary": ""}

    # Empty hint should not clobber populated hint.
    starts_full = full.copy()
    starts_empty = empty.copy()
    hints.Overlay(starts_full, starts_empty)
    self.assertDictEqual(full, starts_full)
    self.assertDictEqual(empty, starts_empty)
    # Populate empty hint from partially populated hint.
    starts_partial = partial.copy()
    starts_empty = empty.copy()
    hints.Overlay(starts_empty, starts_partial)
    self.assertDictEqual(partial, starts_partial)
    self.assertDictEqual(partial, starts_empty)
    # Overlay the full and partial hints to get the hybrid.
    starts_full = full.copy()
    starts_partial = partial.copy()
    hints.Overlay(starts_partial, starts_full)
    self.assertDictEqual(full, starts_full)
    self.assertDictEqual(overlay, starts_partial)
Checks the exception info to see if it indicates a quarantine situation
dataset/ETHPy150Open google/grr/grr/lib/checks/hints_test.py/HintsTests.testCheckOverlay--crossover with--dataset/ETHPy150Open openstack/swift/swift/common/db.py/DatabaseBroker.possibly_quarantine