'Test that welcome template not sent if not new user.'

@patch('email_marketing.tasks.SailthruClient.api_post')
@patch('email_marketing.tasks.SailthruClient.api_get')
def test_user_activation(self, mock_sailthru_get, mock_sailthru_post):

    mock_sailthru_post.return_value = SailthruResponse(JsonResponse({'ok': True}))
    mock_sailthru_get.return_value = SailthruResponse(JsonResponse({'lists': [{'name': 'new    list'}], 'ok': True}))
    update_user.delay({}, self.user.email, new_user=False)
    self.assertEquals(mock_sailthru_post.call_args[0][0], 'user')
    userparms = mock_sailthru_post.call_args[0][1]
    self.assertIsNone(userparms.get('email'))
    self.assertIsNone(userparms.get('template'))
