Example #1
0
 def test_authentication_not_ok(self):
     username = '******'
     password = '******'
     security_token = 'asd'
     try:
         sf = SFNL(username, password, security_token)
         raise AssertionError()
     except:
         pass
Example #2
0
    def test_insert_new_lead(self):
        username = '******'
        password = '******'
        security_token = 'ktb7N4UF6M31ADx4qbxOvMkB'
        sf = SFNL(username, password, security_token)

        lead = dict(name='Rafael',
                    last_name='da Costa',
                    phone='(48) 9911-2222',
                    website='www.google.com',
                    email='*****@*****.**',
                    company='MMC',
                    job_title='Dir. Tech.')

        sf.delete_lead(lead['last_name'], lead['email'])
        id = sf.new_lead(lead)
        print(id, lead)
Example #3
0
 def test_authentication_ok(self):
     username = '******'
     password = '******'
     security_token = 'ktb7N4UF6M31ADx4qbxOvMkB'
     sf = SFNL(username, password, security_token)
     assert (sf is not None)