MCPcopy
hub / github.com/bugy/script-server / test_map_single_update

Method test_map_single_update

src/tests/observable_test.py:36–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.assertEqual([message], observer.data)
35
36 def test_map_single_update(self):
37 observable = self.create_observable()
38 mapped_observable = observable.map(lambda chunk: chunk + '_x')
39
40 observer, message = self._test_single_update(observable, mapped_observable)
41 self.assertEqual([message + '_x'], observer.data)
42
43 def test_time_buffer_single_update(self):
44 observable = self.create_observable()

Callers

nothing calls this directly

Calls 3

create_observableMethod · 0.95
_test_single_updateMethod · 0.95
mapMethod · 0.80

Tested by

no test coverage detected