text: import os
  import sys
  
  import pytest
  
  sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
  
  from base import TestBaseClass
  
  class TestClassOelintTaskAddNoBody(TestBaseClass):
  
      @pytest.mark.parametrize('id', ['oelint.task.addnotaskbody'])
      @pytest.mark.parametrize('occurrence', [1])
      @pytest.mark.parametrize('input', 
          [
              {
              'oelint_adv_test.bb':
              '''
              do_foo() {
  
              }
              addtask do_foo
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              addtask do_notexists
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              do_foo() {
  
              }
              addtask foo
              '''
              }
          ],
      )
      def test_bad(self, input, id, occurrence):
          self.check_for_id(self._create_args(input), id, occurrence)
  
      @pytest.mark.parametrize('id', ['oelint.task.addnotaskbody'])
      @pytest.mark.parametrize('occurrence', [0])
      @pytest.mark.parametrize('input', 
          [
              {
              'oelint_adv_test.bb':
              '''
              do_foo() {
                  :
              }
              addtask do_foo
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              do_foo() {
                  :
              }
              addtask foo
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              addtask build
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              addtask configure
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              addtask compile
              '''
              },
              {
              'oelint_adv_test.bb':
              '''
              addtask install
              '''
              }
          ],
      )
      def test_good(self, input, id, occurrence):
          self.check_for_id(self._create_args(input), id, occurrence)
  