Пример #1
0
 def test_full_data(self):
     '''
     Test for return the full data about the publication,
      this is invoked in the same way as the publish function
     '''
     with patch.object(raet_publish, '_publish', return_value='A'):
         self.assertEqual(raet_publish.full_data('tgt', 'fun'), 'A')
Пример #2
0
 def test_full_data(self):
     '''
     Test for return the full data about the publication,
      this is invoked in the same way as the publish function
     '''
     with patch.object(raet_publish, '_publish', return_value='A'):
         self.assertEqual(raet_publish.full_data('tgt', 'fun'), 'A')