def test_attributes(self):
    from ..circular_buffer import CircularBuffer
    from numpy import random
    buffer = CircularBuffer(shape=(100, 2), dtype='int16')
    data = random.randint(1024, size=(5, 2))
    buffer.append(data)
    self.assertEqual(buffer.shape, (100, 2))
    self.assertEqual(buffer.size, (100 * 2))
    self.assertEqual(buffer.dtype, 'int16')
def test_attributes(self):
    from ..circular_buffer import CircularBuffer
    from numpy import random
    buffer = CircularBuffer(shape=(100, 2), dtype='int16')
    data = random.randint(1024, size=(5, 2))
    buffer.append(data)
    self.assertEqual(buffer.shape, (100, 2))
    self.assertEqual(buffer.size, (100 * 2))
    self.assertEqual(buffer.dtype, 'int16')