示例#1
0
文件: tests.py 项目: FZambia/fly
 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)