Esempio n. 1
0
 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))
Esempio n. 2
0
 def test_clean_exprn_brack_pair(self):
     pair = '(Hello world)'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(pair))
Esempio n. 3
0
 def test_clean_exprn_multi_bracks(self):
     multi = '(((Hello world)'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(multi))
Esempio n. 4
0
 def test_clean_exprn_empty(self):
     empty = ''
     exp = ''
     self.assertEqual(exp, man.clean_exprn(empty))
Esempio n. 5
0
 def test_clean_exprn_single_start_brack(self):
     single = '(Hello world'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(single))
Esempio n. 6
0
 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))
Esempio n. 7
0
 def test_clean_exprn_multi_bracks(self):
     multi = '(((Hello world)'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(multi))
Esempio n. 8
0
 def test_clean_exprn_brack_pair(self):
     pair = '(Hello world)'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(pair))
Esempio n. 9
0
 def test_clean_exprn_single_start_brack(self):
     single = '(Hello world'
     expected = 'Hello world'
     self.assertEqual(expected, man.clean_exprn(single))
Esempio n. 10
0
 def test_clean_exprn_empty(self):
     empty = ''
     exp = ''
     self.assertEqual(exp, man.clean_exprn(empty))