MCPcopy Create free account
hub / github.com/NetSys/bess / test_run_module_command

Method test_run_module_command

pybess/test_bess.py:141–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 self.assertEqual('p0', response.name)
140
141 def test_run_module_command(self):
142 client = bess.BESS()
143 client.connect(grpc_url=self.GRPC_URL)
144
145 response = client.run_module_command('m1',
146 'add',
147 'ExactMatchCommandAddArg',
148 {'gate': 0,
149 'fields': [{'value_bin': b'\x11'}, {'value_bin': b'\x22'}]})
150 self.assertEqual(0, response.error.code)

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
run_module_commandMethod · 0.95

Tested by

no test coverage detected