class_docstr: Tests for tf_export class.
class_docstr_tok: ["Tests","for","tf_export","class","."]
code: def testExportSingleConstant(self):
      module1 = self._CreateMockModule("module1")
  
      export_decorator = tf_export.tf_export("NAME_A", "NAME_B")
      export_decorator.export_constant("module1", "test_constant")
      self.assertEqual(
          [(("NAME_A", "NAME_B"), "test_constant")],
          module1._tf_api_constants,
      )
      self.assertEqual(
          [(("NAME_A", "NAME_B"), "test_constant")],
          tf_export.get_v1_constants(module1),
      )
      self.assertEqual(
          [(("NAME_A", "NAME_B"), "test_constant")],
          tf_export.get_v2_constants(module1),
      )
  
file_path: tensorflow/tensorflow/python/util/tf_export_test.py
imports: import sys
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 8 for calling the ValidateExportTest obj's underlying member method code with example usage: obj.testExportSingleConstant() without return types