docstr: Regression test for issue #836
docstr_tok: ["Regression","test","for","issue","#","836"]
code: def test_escapes_escaped_colon(self):
      """
      Regression test for issue #836
      """
      predicate_1 = predicates.SimplePredicate(
          predicates.commonSetElementPredicate, "col_1"
      )
      predicate_2 = predicates.SimplePredicate(
          predicates.commonSetElementPredicate, "col_2"
      )
      record = {"col_1": ["foo\\:", "foo"], "col_2": ["\\:bar", "bar"]}
  
      block_val = predicates.CompoundPredicate(
          [predicate_1, predicate_2]
      )(record)
      assert len(set(block_val)) == 4
      assert block_val == {
          "foo\\\\::\\\\:bar",
          "foo\\\\::bar",
          "foo:\\\\:bar",
          "foo:bar",
      }
  
imports: import unittest
  from dedupe import predicates
label_desc: Use image node_id 2 for calling the TestCompoundPredicate obj's underlying member method code with example usage: obj.test_escapes_escaped_colon() without return types