Exemplo n.º 1
0
 def test_replace_slugline(self):
     item = {'slugline': self.body}
     item = find_and_replace(item)
     self.assertEqual(
         item['slugline'],
         'Cost of train tickets increased by AUD 1 for all destinations')
 def test_replace_slugline(self):
     item = {'slugline': self.body}
     item = find_and_replace(item)
     self.assertEqual(item['slugline'], 'Cost of train tickets increased by AUD 1 for all destinations')
Exemplo n.º 3
0
 def test_replace_abstract(self):
     item = {'abstract': self.body}
     item = find_and_replace(item)
     self.assertEqual(
         item['abstract'],
         'Cost of train tickets increased by AUD 1 for all destinations')
 def test_replace_abstract(self):
     item = {'abstract': self.body}
     item = find_and_replace(item)
     self.assertEqual(item['abstract'], 'Cost of train tickets increased by AUD 1 for all destinations')