old_contents: #: Okay
  class C1:
      def __str__(self):
          return ''
  #: Okay
  class C2:
      if True:
          def __str__(self):
              return ''
  #: Okay
  class C3:
      try:
          if True:
              while True:
                  def __str__(self):
                      return ''
                  break
      except:
          pass
  #: N807
  def __bad():
      pass
  #: N807
  def bad__():
      pass
  #: N807
  def __bad__():
      pass
  #: N807
  class ClassName(object):
      def method(self):
          def __bad():
              pass
  
new_contents: #: Okay
  class C1:
      def __str__(self):
          return ''
  #: Okay
  class C2:
      if True:
          def __str__(self):
              return ''
  #: N807
  if True:
      def __bad__():
          pass
  #: Okay
  class C3:
      try:
          if True:
              while True:
                  def __str__(self):
                      return ''
                  break
      except:
          pass
  #: N807
  def __bad():
      pass
  #: N807
  def bad__():
      pass
  #: N807
  def __bad__():
      pass
  #: N807
  class ClassName(object):
      def method(self):
          def __bad():
              pass
  
subject: Add a test for N807 error within a conditional