'L{util._replaceIf}\'s condition argument only accepts bools.'

def test_boolsOnly(self):

    with self.assertRaises(ValueError) as e:
        @util._replaceIf('hi', 'there')
        def test():
            '\n                                                                Some    test    function.\n                                                                '
    self.assertEqual(e.exception.args[0], "condition    argument    to    _replaceIf    requires    a    bool,    not    'hi'")
