Exemplo n.º 1
0
 def test_double_deceptive_curly_braces(self):
     entry = {
         'title': '{A {normal} title}',
     }
     journals.fix_curly_braces(entry)
     self.assertEqual(entry['title'], 'A {normal} title')
Exemplo n.º 2
0
 def test_bad_ending_curly_braces(self):
     entry = {
         'title': '{A normal {title}',
     }
     journals.fix_curly_braces(entry)
     self.assertEqual(entry['title'], 'A normal {title')
Exemplo n.º 3
0
 def test_normal_curly_braces(self):
     entry = {
         'title': 'A {normal} title',
     }
     journals.fix_curly_braces(entry)
     self.assertEqual(entry['title'], 'A {normal} title')