Beispiel #1
0
 def test_blacklist(self):
     dic = {'test': 'something', 'another_field': 'rubish and something'}
     transformer = Transformer(dic)
     transformer.blacklist = {'another_field': [r'^rubish']}
     self.assertFalse(transformer.is_valid())