def test_apply_with_dict_pipe(self): pipe = { "match": { "hostname": { "conditions": [("iexact", "mail.ru")] } }, "alter": { "drop": "ALL" } } p = Pipe() res = p.apply(copy(self.dictionary), pipe) self.assertEqual(res, None)