'Scenario: An event is fired when a user with a profile image uploads another image
Given that I am on my profile page with public access
And I upload a new image via file uploader
When I upload another image via the file uploader
Then two upload events have been emitted'

def test_eventing_after_multiple_uploads(self):

    (username, user_id) = self.log_in_as_unique_user()
    profile_page = self.visit_profile_page(username, privacy=self.PRIVACY_PUBLIC)
    self.assert_default_image_has_public_access(profile_page)
    with self.verify_pref_change_event_during(username, user_id, 'profile_image_uploaded_at', table='auth_userprofile'):
        profile_page.upload_file(filename='image.jpg')
    self.assertTrue(profile_page.image_upload_success)
    with self.verify_pref_change_event_during(username, user_id, 'profile_image_uploaded_at', table='auth_userprofile'):
        profile_page.upload_file(filename='image.jpg', wait_for_upload_button=False)
