Ejemplo n.º 1
0
 def test_text(self):
     result = self._do_output(o.TextOutput(), self._demo_msgs)
     self.assertEqual(result,
       "mock: mock.cmake(1): error: short text\n"
       "mock: mock.cmake(2): warning: short text\n"
       "mock: mock.cmake(3): notice: short text\n"
       "mock: error: short text\n"
       "mock: mock.cmake: error: short text\n"
     )
Ejemplo n.º 2
0
 def test_text(self):
     """Test output format for catkin_lint text output"""
     result = self._do_output(o.TextOutput(o.Color.Never), self._demo_msgs)
     self.assertEqual(
         result, "mock: mock.cmake(1): error: short text\n"
         "mock: mock.cmake(2): warning: short text\n"
         "mock: mock.cmake(3): notice: short text\n"
         "mock: error: short text\n"
         "mock: mock.cmake: error: short text\n")