def createRemoteCampaignsForSocialThrift(campaignId): connObj = SocialHelper.getConnObj(newConnection=True) return connObj.createCampaign( constant.config['orgId'], SocialObject().SocialChannel['facebook'], SocialObject.SocialCampaign( 'SocialCampaign_{}'.format(int(time.time() * 1000)), constant.config['orgId'], campaignId), 'requestId_automationthriftCall_{}'.format( int(time.time() * 1000))).remoteCampaignId
def test_socialThrift_createCampaign_Sanity(self, socialStatus): SocialCampaign = self.connObj.createCampaign( constant.config['orgId'], SocialObject().SocialChannel['facebook'], SocialObject.SocialCampaign('SocialCampaign_{}'.format( int(time.time() * 1000)), constant.config['orgId'], self.campaigns['ORG'], socialCampaignStatus=socialStatus), 'requestId_automationthriftCall_{}'.format(int(time.time() * 1000))) SocialHelper.assertCreateCampaignForSocial(self.campaigns['ORG'], SocialCampaign)