41 from subprocess
import call
47 cmd = [
'rosrun',
'topic_tools',
'drop']
48 self.assertNotEquals(0, call(cmd))
49 self.assertNotEquals(0, call(cmd + [
'//',
'1',
'2',
'output']))
50 self.assertNotEquals(0, call(cmd + [
'input',
'1',
'2',
'output',
'extra']))
51 self.assertNotEquals(0, call(cmd + [
'input',
'-1',
'2',
'output']))
52 self.assertNotEquals(0, call(cmd + [
'input',
'1',
'0',
'output']))
55 cmd = [
'rosrun',
'topic_tools',
'mux']
56 self.assertNotEquals(0, call(cmd))
57 self.assertNotEquals(0, call(cmd + [
'//',
'input']))
60 cmd = [
'rosrun',
'topic_tools',
'switch_mux']
61 self.assertNotEquals(0, call(cmd))
62 self.assertNotEquals(0, call(cmd + [
'//',
'input']))
65 cmd = [
'rosrun',
'topic_tools',
'relay']
66 self.assertNotEquals(0, call(cmd))
67 self.assertNotEquals(0, call(cmd + [
'//',
'input']))
69 if __name__ ==
"__main__":
71 rostest.unitrun(PKG,
'topic_tools_arg_parsing', TopicToolsTestCase)