def test_1(self):
    from numpy import random
    from ..circular_buffer import CircularBuffer
    buffer = CircularBuffer(shape=(100, 2, 4))
    data = random.randint(1024, size=(5, 2, 4))
    buffer.packet_length = 5
    buffer.append(data)
    self.assertEqual(buffer.pointer, 4)
    self.assertEqual(buffer.g_pointer, 4)
    self.assertEqual(buffer.packet_pointer, 0)
    self.assertEqual(buffer.g_packet_pointer, 0)
def test_1(self):
    from numpy import random
    from ..circular_buffer import CircularBuffer
    buffer = CircularBuffer(shape=(100, 2, 4))
    data = random.randint(1024, size=(5, 2, 4))
    buffer.packet_length = 5
    buffer.append(data)
    self.assertEqual(buffer.pointer, 4)
    self.assertEqual(buffer.g_pointer, 4)
    self.assertEqual(buffer.packet_pointer, 0)
    self.assertEqual(buffer.g_packet_pointer, 0)