code: def hacking_assert_equal(logical_line, noqa):
      r
      if noqa:
          return
  
      methods = ['assertTrue', 'assertFalse']
      for method in methods:
          start = logical_line.find('.%s' % method) + 1
          if start != 0:
              break
      else:
          return
      comparisons = [ast.Eq, ast.NotEq]
      checker = AssertTrueFalseChecker(methods, comparisons)
      checker.visit(ast.parse(logical_line))
      if checker.error:
          yield start, 'H204: Use assert(Not)Equal()'
docs: r"""Check that self.assertEqual and self.assertNotEqual are used.
  
      Okay: self.assertEqual(x, y)
      Okay: self.assertNotEqual(x, y)
      H204: self.assertTrue(x == y)
      H204: self.assertTrue(x != y)
      H204: self.assertFalse(x == y)
      H204: self.assertFalse(x != y)