pyrc.tests.test_cell#
- class TestCellPlacement(methodName='runTest')#
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()#
Hook method for setting up the test fixture before exercising it.
- test_create_adjacent()#
- test_create_adjacent_with_position()#
- test_create_grid_aligned()#
- test_create_grid_aligned_positioning()#
- test_create_grid_all_cells_are_cell_instances()#
All elements are Cell instances.
- test_create_grid_cell_deltas()#
Each cell has correct delta dimensions.
- test_create_grid_center_position_custom()#
Grid center (mean of all positions) equals specified center.
- test_create_grid_center_position_default()#
Grid center (mean of all positions) defaults to origin.
- test_create_grid_positions_spacing()#
Adjacent cells are spaced by cell deltas.
- test_create_grid_return_type_and_shape()#
Grid has correct type and shape.
- test_create_grid_subclass_returns_subclass_instances()#
Subclass call populates grid with subclass instances.
- test_inherited_class()#
- test_place_adjacent_at_vertex()#
- test_place_adjacent_different_sizes()#
- test_place_adjacent_minus_x()#
- test_place_adjacent_plus_minus_notation()#
- test_place_adjacent_preserves_unaligned_coordinates()#
- test_place_adjacent_same_face()#
This places the new cell within the other at the same position.
- test_place_adjacent_simple()#
- test_place_adjacent_stack()#
- test_place_adjacent_with_space()#
- test_place_adjacent_x()#