Commits

Ginés Martínez Sánchez committed 18cc4b1 Draft

improving io buffers

Comments (0)

Files changed (1)

ginsfsm/tests/test_circular.py

         data = self.circular.getdata(1)
         self.assertEqual(data, b'')
 
+        count = self.circular.putdata("qw")
+        self.assertEqual(count, 2)
+        data = self.circular.getdata()
+        self.assertEqual(data, b'qw')
+
     def test_getdata_putdata_with_overwrite(self):
         count = self.circular.putdata("123")
         self.assertEqual(count, 3)