class_docstr: Test cases for the AdversarialTrainer class.
class_docstr_tok: ["Test","cases","for","the","AdversarialTrainer","class","."]
code: def test_classifier_match(self):
      attack = FastGradientMethod(self.classifier)
      adv_trainer = AdversarialTrainer(self.classifier, attack)
  
      self.assertEqual(len(adv_trainer.attacks), 1)
      self.assertEqual(
          adv_trainer.attacks[0].estimator, adv_trainer.get_classifier()
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.evasion.fast_gradient import FastGradientMethod
  from art.attacks.evasion.deepfool import DeepFool
  from art.data_generators import DataGenerator
  from art.defences.trainer.adversarial_trainer import AdversarialTrainer
  from art.utils import load_mnist
  from tests.utils import master_seed, get_image_classifier_tf
label_desc: Use image node_id 3 for calling the TestAdversarialTrainer obj's underlying member method code with example usage: obj.test_classifier_match() without return types