tests.pytmx.test_pytmx module

class tests.pytmx.test_pytmx.TestConvertToBool(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_non_boolean_number_raises_error()[source]
test_non_boolean_string_raises_error()[source]
test_string_bool_empty()[source]
test_string_bool_false()[source]
test_string_bool_none()[source]
test_string_bool_true()[source]
test_string_bool_whitespace_only()[source]
test_string_number_false()[source]
test_string_number_true()[source]
test_string_string_false()[source]
test_string_string_true()[source]
class tests.pytmx.test_pytmx.TiledElementTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

test_contains_reserved_property_name()[source]

Reserved names are checked from any attributes in the instance after it is created. Instance attributes are defaults from the specification. We check that new properties are not named same as existing attributes.

test_from_xml_string_should_raise_on_TiledElement()[source]
test_not_contains_reserved_property_name()[source]

Reserved names are checked from any attributes in the instance after it is created. Instance attributes are defaults from the specification. We check that new properties are not named same as existing attributes.

test_repr()[source]
test_reserved_names_check_disabled_with_option()[source]

Reserved names are checked from any attributes in the instance after it is created. Instance attributes are defaults from the specification. We check that new properties are not named same as existing attributes.

Check that passing an option will disable the check

class tests.pytmx.test_pytmx.TiledMapTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

filename = 'tests/resources/test01.tmx'
setUp()[source]

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

test_build_rects()[source]
test_get_tile_image()[source]
test_get_tile_image_by_gid()[source]
test_layer_width_height_is_int()[source]
test_map_width_height_is_int()[source]
test_pixels_to_tile_pos()[source]
test_properties_are_converted_to_builtin_types()[source]
test_properties_are_converted_to_correct_values()[source]
test_reserved_names_check_disabled_with_option()[source]