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')