pose_format.utils.reader_test module

Classes:

TestBufferReader([methodName])

Tests for the BufferReader class

class pose_format.utils.reader_test.TestBufferReader(methodName='runTest')[source]

Bases: TestCase

Tests for the BufferReader class

Methods:

test_advance()

Test that advance advances the read_offset by the correct number of bytes

test_bytes_left()

Test that bytes_left returns the correct number of bytes left to read

test_unpack()

Test that unpack returns the correct value

test_unpack_f()

Test that unpack_f returns the correct value

test_unpack_numpy()

Test that unpack_numpy returns the correct value

test_unpack_numpy_writeable()

Test that unpack_numpy returns a writeable array

test_unpack_str()

Test that unpack_str returns the correct value

test_unpack_tensorflow()

Test that unpack_tensorflow returns the correct value

test_unpack_torch()

Test that unpack_torch returns the correct value

test_advance()[source]

Test that advance advances the read_offset by the correct number of bytes

test_bytes_left()[source]

Test that bytes_left returns the correct number of bytes left to read

test_unpack()[source]

Test that unpack returns the correct value

test_unpack_f()[source]

Test that unpack_f returns the correct value

test_unpack_numpy()[source]

Test that unpack_numpy returns the correct value

test_unpack_numpy_writeable()[source]

Test that unpack_numpy returns a writeable array

test_unpack_str()[source]

Test that unpack_str returns the correct value

test_unpack_tensorflow()[source]

Test that unpack_tensorflow returns the correct value

test_unpack_torch()[source]

Test that unpack_torch returns the correct value