# Path: tensorflow_transform/tf_metadata/test_common.py
# def get_test_schema():
# 
# Path: tensorflow_transform/tf_metadata/dataset_metadata.py
# class DatasetMetadata:
#   def __init__(self, schema: schema_pb2.Schema):
#   def from_feature_spec(
#       cls: Type[_DatasetMetadataType],
#       feature_spec: Mapping[str, common_types.FeatureSpecType],
#       domains: Optional[Mapping[str, common_types.DomainType]] = None
#   ) -> _DatasetMetadataType:
#   def schema(self) -> schema_pb2.Schema:
#   def __eq__(self, other):
#   def __ne__(self, other):
#   def __repr__(self):


from tensorflow_transform.tf_metadata import test_common
from tensorflow_transform.tf_metadata import dataset_metadata
import unittest
# Copyright 2022 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for dataset_metadata."""



class DatasetSchemaTest(unittest.TestCase):

  def test_sanity(self):
    metadata = dataset_metadata.DatasetMetadata.from_feature_spec(
        test_common.test_feature_spec)

# Path: tensorflow_transform/tf_metadata/test_common.py
# def get_test_schema():
# 
# Path: tensorflow_transform/tf_metadata/dataset_metadata.py
# class DatasetMetadata:
#   def __init__(self, schema: schema_pb2.Schema):
#   def from_feature_spec(
#       cls: Type[_DatasetMetadataType],
#       feature_spec: Mapping[str, common_types.FeatureSpecType],
#       domains: Optional[Mapping[str, common_types.DomainType]] = None
#   ) -> _DatasetMetadataType:
#   def schema(self) -> schema_pb2.Schema:
#   def __eq__(self, other):
#   def __ne__(self, other):
#   def __repr__(self):


# Path: tensorflow_transform/tf_metadata/dataset_metadata_test.py
from tensorflow_transform.tf_metadata import test_common
from tensorflow_transform.tf_metadata import dataset_metadata
import unittest

# Copyright 2022 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for dataset_metadata."""



class DatasetSchemaTest(unittest.TestCase):

  def test_sanity(self):
    metadata = dataset_metadata.DatasetMetadata.from_feature_spec(
        test_common.test_feature_spec)

    self.assertEqual(metadata.schema, test_common.get_test_schema())