def setUp(self):
    self.frozendict = dedupe.core.frozendict

    field_definition = [{'field' : 'name', 'type': 'String'}]
    self.data_model = dedupe.Dedupe(field_definition).data_model
    self.training_pairs = {
        'match': [(self.frozendict({"name": "Bob", "age": "50"}),
             self.frozendict({"name": "Bob", "age": "75"})),
            (self.frozendict({"name": "Meredith", "age": "40"}),
             self.frozendict({"name": "Sue", "age": "10"}))], 
        'distinct': [(self.frozendict({"name": "Jimmy", "age": "20"}),
             self.frozendict({"name": "Jimbo", "age": "21"})),
            (self.frozendict({"name": "Willy", "age": "35"}),
             self.frozendict({"name": "William", "age": "35"})),
            (self.frozendict({"name": "William", "age": "36"}),
             self.frozendict({"name": "William", "age": "35"}))]
      }

    self.training = self.training_pairs['match'] + self.training_pairs['distinct']
    self.training_records = set().union(*self.training)

    self.simple = lambda x : set([str(k) for k in x 
                                  if str(k) not in "CompoundPredicate"])
dataset/ETHPy150Open datamade/dedupe/tests/test_blocking.py/BlockingTest.setUp/swapped operands of `not in`