(self)
| 20 | pd.testing.assert_frame_equal(plot[()].data, new_df) |
| 21 | |
| 22 | def test_buffer_stream(self): |
| 23 | stream = Buffer(data=self.df, index=False) |
| 24 | plot = self.df.hvplot('x', 'y', stream=stream) |
| 25 | pd.testing.assert_frame_equal(plot[()].data, self.df) |
| 26 | new_df = pd.DataFrame([[7, 8], [9, 10]], columns=['x', 'y']) |
| 27 | stream.send(new_df) |
| 28 | pd.testing.assert_frame_equal(plot[()].data, pd.concat([self.df, new_df])) |