def test_filter_invalid_args(self):

        # Both filter func and params
        with self.assertRaises(TypeError):
            self.query.filter(lambda x: x % 2 == 0, text="3")

        # Neither filter func nor params
        with self.assertRaises(TypeError):
            self.query.filter()
dataset/ETHPy150Open edx/bok-choy/tests/test_query.py/TestQuery.test_filter_invalid_args/original