def METHOD_NAME(self):
    upload_to = '/'
    detail = file_uploaded_msg_to_json('upload_msg', self.repo.id, upload_to)
    notice = UserNotification.objects.add_file_uploaded_msg('file@upload.com', detail)
    msg = notice.format_file_uploaded_msg()
    assert '/library/%(repo_id)s/%(repo_name)s/%(path)s' % {'repo_id': self.repo.id,
                                                  'repo_name': self.repo.name,
                                                  'path': upload_to.strip('/')} in msg