Example #1
0
 def test_toNone(self):
     """toNone"""
     invals = ['', 'None', 'none', 'NONE']
     for v in invals:
         self.assertTrue(Utils.toNone(v) is None)
     invals = ['sdg', 'false', False, 'sagdfa']
     for v in invals:
         self.assertFalse(Utils.toNone(v) is None)
Example #2
0
def _processNone(conf):
    for k in conf:
        if 'ignore' in conf[k]:
            conf[k]['ignore'] = Utils.toNone(conf[k]['ignore'])
    return conf