def test_clean_exprn_preserve_necessary_brack(self): exprn = '(((EXISTE (Hello world en mi casa)))' expected = 'EXISTE (Hello world en mi casa)' self.assertEqual(expected, man.clean_exprn(exprn))
def test_clean_exprn_brack_pair(self): pair = '(Hello world)' expected = 'Hello world' self.assertEqual(expected, man.clean_exprn(pair))
def test_clean_exprn_multi_bracks(self): multi = '(((Hello world)' expected = 'Hello world' self.assertEqual(expected, man.clean_exprn(multi))
def test_clean_exprn_empty(self): empty = '' exp = '' self.assertEqual(exp, man.clean_exprn(empty))
def test_clean_exprn_single_start_brack(self): single = '(Hello world' expected = 'Hello world' self.assertEqual(expected, man.clean_exprn(single))