oioioi.balloons.tests

Module Contents

Classes

TestBalloons

Similar to TransactionTestCase, but use transaction.atomic() to achieve

class oioioi.balloons.tests.TestBalloons(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'test_contest', 'test_full_package', 'test_problem_instance'][source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_balloons_access()[source]
_submit_solution(user, source_file)[source]
_check_delivery(delivery, user, first=False)[source]
test_balloon_request_creation()[source]
_check_balloon_requests(response, expected_number, all_number)[source]
test_getting_new_balloon_requests()[source]
test_setting_delivered_status()[source]