import pytest

import pyrostest

class TestSpinUp(pyrostest.RosTest):
    def noop(self):
        pass

    @pyrostest.launch_node('pyrostest', 'add_one.py')
    def launches_node(self):
        pass

class FailureCases(pyrostest.RosTest):
    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('this_isnt_a_project', 'add_one.py')
    def no_rospackage(self):
        pass


    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('pyrostest', 'this_isnt_a_rosnode.py')
    def no_node(self):
        pass

    
    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('pyrostest', 'does_not_exist')
    def no_launch_file(self):
        pass

    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('not_a_package', 'exists')
    def no_launch_package(self):
        pass


import pytest

import pyrostest

class TestSpinUp(pyrostest.RosTest):
    def test_noop(self):
        pass

    @pyrostest.launch_node('pyrostest', 'add_one.py')
    def test_launches_node(self):
        pass

class TestFailureCases(pyrostest.RosTest):
    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('this_isnt_a_project', 'add_one.py')
    def test_no_rospackage(self):
        pass


    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('pyrostest', 'this_isnt_a_rosnode.py')
    def test_no_node(self):
        pass

    
    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('pyrostest', 'does_not_exist')
    def test_no_launch_file(self):
        pass

    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('not_a_package', 'exists')
    def test_no_launch_package(self):
        pass


Rename tests so that they run.
Rename tests so that they run.

  import pytest
  
  import pyrostest
  
  class TestSpinUp(pyrostest.RosTest):
-     def noop(self):
+     def test_noop(self):
          pass
  
      @pyrostest.launch_node('pyrostest', 'add_one.py')
-     def launches_node(self):
+     def test_launches_node(self):
          pass
  
- class FailureCases(pyrostest.RosTest):
+ class TestFailureCases(pyrostest.RosTest):
      @pytest.mark.xfail(strict=True)
      @pyrostest.launch_node('this_isnt_a_project', 'add_one.py')
-     def no_rospackage(self):
+     def test_no_rospackage(self):
          pass
  
  
      @pytest.mark.xfail(strict=True)
      @pyrostest.launch_node('pyrostest', 'this_isnt_a_rosnode.py')
-     def no_node(self):
+     def test_no_node(self):
          pass
  
      
      @pytest.mark.xfail(strict=True)
      @pyrostest.with_launch_file('pyrostest', 'does_not_exist')
-     def no_launch_file(self):
+     def test_no_launch_file(self):
          pass
  
      @pytest.mark.xfail(strict=True)
      @pyrostest.with_launch_file('not_a_package', 'exists')
-     def no_launch_package(self):
+     def test_no_launch_package(self):
          pass
  
  
Rename tests so that they run.
## Code Before:
import pytest

import pyrostest

class TestSpinUp(pyrostest.RosTest):
    def noop(self):
        pass

    @pyrostest.launch_node('pyrostest', 'add_one.py')
    def launches_node(self):
        pass

class FailureCases(pyrostest.RosTest):
    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('this_isnt_a_project', 'add_one.py')
    def no_rospackage(self):
        pass


    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('pyrostest', 'this_isnt_a_rosnode.py')
    def no_node(self):
        pass

    
    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('pyrostest', 'does_not_exist')
    def no_launch_file(self):
        pass

    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('not_a_package', 'exists')
    def no_launch_package(self):
        pass


## Instruction:
Rename tests so that they run.
## Code After:
import pytest

import pyrostest

class TestSpinUp(pyrostest.RosTest):
    def test_noop(self):
        pass

    @pyrostest.launch_node('pyrostest', 'add_one.py')
    def test_launches_node(self):
        pass

class TestFailureCases(pyrostest.RosTest):
    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('this_isnt_a_project', 'add_one.py')
    def test_no_rospackage(self):
        pass


    @pytest.mark.xfail(strict=True)
    @pyrostest.launch_node('pyrostest', 'this_isnt_a_rosnode.py')
    def test_no_node(self):
        pass

    
    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('pyrostest', 'does_not_exist')
    def test_no_launch_file(self):
        pass

    @pytest.mark.xfail(strict=True)
    @pyrostest.with_launch_file('not_a_package', 'exists')
    def test_no_launch_package(self):
        pass

