'Test profiles saves when keep the existing photo.
Related bug 925256.'

def test_save_profile_with_existing_photo(self):

    user = UserFactory.create()
    file_path = os.path.join(os.path.dirname(__file__), 'normal_photo.jpg')
    self._upload_photo(user, file_path)
    data = {'full_name': user.userprofile.full_name, 'email': user.email, 'username': user.username, 'lat': 40.005814, 'lng': (-3.42071), 'externalaccount_set-MAX_NUM_FORMS': '1000', 'externalaccount_set-INITIAL_FORMS': '0', 'externalaccount_set-TOTAL_FORMS': '0', 'language_set-MAX_NUM_FORMS': '1000', 'language_set-INITIAL_FORMS': '0', 'language_set-TOTAL_FORMS': '0', 'basic_section': ''}
    for field in UserProfilePrivacyModel._meta.fields:
        data[field.name] = MOZILLIANS
    data['privacy_tshirt'] = PRIVILEGED
    url = reverse('phonebook:profile_edit', prefix='/en-US/')
    with self.login(user) as client:
        response = client.post(url, data=data, follow=True)
    eq_(response.status_code, 200)
