oioioi.workers.tests

Module Contents

Classes

TestServer

TestWorkersInfo

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

class oioioi.workers.tests.TestServer[source]

Bases: object

get_workers()[source]
class oioioi.workers.tests.TestWorkersInfo(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'][source]
setUp()[source]

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

test_admin_can_see()[source]
test_mundane_user_cant_see()[source]