def test_clean_init(self): clean = inputs.Clean('hello OR there, :you') self.assertEqual(clean.query_string, 'hello OR there, :you') self.assertEqual(clean.post_process, True)
def test_clean_prepare(self): clean = inputs.Clean('hello OR there, :you') self.assertEqual(clean.prepare(self.query_obj), 'hello or there, \\:you')
def test_clean_prepare(self): clean = inputs.Clean("hello OR there, :you") self.assertEqual(clean.prepare(self.query_obj), "hello OR there, :you")