Module Index

Module: test

This package contains test cases and test suites for the boduch Python library.

Modules

event

This module provides a test case class for testing events called TestEvent and a test suite which contains the event test case class.

hash

This module provides a test case for the Hash class and a test suite that contains the test case.

predicate

Copyright (C) 2008 Adam Boduch

set

This module provides a test case for the Set class and a test suite which contains a the test case class.

state

Copyright (C) 2008 Adam Boduch

util

This module contains a utility function for executing all the test suites.

Classes

TestEvent

This class is derived from the TestCase class which is part of the builtin unittest Python module. There are several methods defined by this class each representing some area of event testing.

TestHash

This class defines the unit tests for the Hash class.

TestPredicate

TestSet

This class is the test case for Set instances.

TestState

Attributes

SuiteEvent

Value of SuiteEvent

<unittest.TestSuite tests=[<boduch.test.event.TestEvent testMethod=test_A_interface>, <boduch.test.event.TestEvent testMethod=test_B_subscribe>, <boduch.test.event.TestEvent testMethod=test_C_unsubscribe>, <boduch.test.event.TestEvent testMethod=test_D_publish>]>

SuiteHash

Value of SuiteHash

<unittest.TestSuite tests=[<boduch.test.hash.TestHash testMethod=test_A_interface>, <boduch.test.hash.TestHash testMethod=test_B_push>, <boduch.test.hash.TestHash testMethod=test_C_get>, <boduch.test.hash.TestHash testMethod=test_D_pop>, <boduch.test.hash.TestHash testMethod=test_E_setitem>, <boduch.test.hash.TestHash testMethod=test_F_getitem>, <boduch.test.hash.TestHash testMethod=test_G_delitem>]>

SuitePredicate

Value of SuitePredicate

<unittest.TestSuite tests=[<boduch.test.predicate.TestPredicate testMethod=test_A_interface>, <boduch.test.predicate.TestPredicate testMethod=test_B_equal_true>, <boduch.test.predicate.TestPredicate testMethod=test_C_equal_false>, <boduch.test.predicate.TestPredicate testMethod=test_D_greater_true>, <boduch.test.predicate.TestPredicate testMethod=test_E_greater_false>, <boduch.test.predicate.TestPredicate testMethod=test_F_lesser_true>, <boduch.test.predicate.TestPredicate testMethod=test_G_lesser_false>]>

SuiteSet

Value of SuiteSet

<unittest.TestSuite tests=[<boduch.test.set.TestSet testMethod=test_A_interface>, <boduch.test.set.TestSet testMethod=test_B_push>, <boduch.test.set.TestSet testMethod=test_C_sort>, <boduch.test.set.TestSet testMethod=test_D_get>, <boduch.test.set.TestSet testMethod=test_E_pop>, <boduch.test.set.TestSet testMethod=test_F_setitem>, <boduch.test.set.TestSet testMethod=test_G_getitem>, <boduch.test.set.TestSet testMethod=test_H_delitem>, <boduch.test.set.TestSet testMethod=test_I_iteritem>]>