File: test_disable_hit.py

package info (click to toggle)
python-boto 2.49.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,888 kB
  • sloc: python: 86,396; makefile: 112
file content (11 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
from tests.mturk.support import unittest

from common import MTurkCommon
from boto.mturk.connection import MTurkRequestError

class TestDisableHITs(MTurkCommon):
	def test_disable_invalid_hit(self):
		self.assertRaises(MTurkRequestError, self.conn.disable_hit, 'foo')

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