test_dtype

Module Contents

assert_dtype_equal(a, b)
assert_dtype_not_equal(a, b)
class TestBuiltin

Bases:TestCase

test_run(self)

Only test hash runs at all.

test_dtype(self)
test_equivalent_dtype_hashing(self)
test_invalid_types(self)
test_bad_param(self)
class TestRecord

Bases:TestCase

test_equivalent_record(self)

Test whether equivalent record dtypes hash the same.

test_different_names(self)
test_different_titles(self)
test_not_lists(self)

Test if an appropriate exception is raised when passing bad values to the dtype constructor.

test_aligned_size(self)
test_union_struct(self)
test_comma_datetime(self)
class TestSubarray

Bases:TestCase

test_single_subarray(self)
test_equivalent_record(self)

Test whether equivalent subarray dtypes hash the same.

test_nonequivalent_record(self)

Test whether different subarray dtypes hash differently.

test_shape_equal(self)

Test some data types that are equal

test_shape_simple(self)

Test some simple cases that shouldn’t be equal

test_shape_monster(self)

Test some more complicated cases that shouldn’t be equal

test_shape_sequence(self)
test_shape_invalid(self)
test_alignment(self)
class TestMonsterType

Bases:TestCase

Test deeply nested subtypes.

test1(self)
class TestMetadata

Bases:TestCase

test_no_metadata(self)
test_metadata_takes_dict(self)
test_metadata_rejects_nondict(self)
test_nested_metadata(self)
class TestString

Bases:TestCase

test_complex_dtype_str(self)
test_complex_dtype_repr(self)
test_dtype_str_with_long_in_shape(self)
test_base_dtype_with_object_type(self)
test_empty_string_to_object(self)
class TestDtypeAttributeDeletion

Bases:object

test_dtype_non_writable_attributes_deletion(self)
test_dtype_writable_attributes_deletion(self)
class TestDtypeAttributes

Bases:TestCase

test_name_builtin(self)
test_name_dtype_subclass(self)