# Path: efopen/ef_site_config.py
# class EFSiteConfig(object):
#   def __init__(self):
#   def load(self):
#   def load_from_ssm(self):
#   def load_from_local_file(self):


import os
import unittest
from mock import MagicMock, Mock, patch, mock_open
from efopen import ef_site_config

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.
"""





class TestEFSiteConfig(unittest.TestCase):
  """
  TestEFSiteConfig class for ef_site_config testing.
  """

  def setUp(self):
    test_ef_site_config_file = os.path.join(os.path.dirname(__file__), '../test_data/ef_site_config.yml')
    self.test_config = open(test_ef_site_config_file).read()

  def test_site_load_local_file(self):
    """Test parsing a site config"""
    with patch('__builtin__.open', mock_open(read_data=self.test_config)) as mock_file:

# Path: efopen/ef_site_config.py
# class EFSiteConfig(object):
#   def __init__(self):
#   def load(self):
#   def load_from_ssm(self):
#   def load_from_local_file(self):


# Path: tests/unit_tests/test_ef_site_config.py
import os
import unittest
from mock import MagicMock, Mock, patch, mock_open
from efopen import ef_site_config


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.
"""





class TestEFSiteConfig(unittest.TestCase):
  """
  TestEFSiteConfig class for ef_site_config testing.
  """

  def setUp(self):
    test_ef_site_config_file = os.path.join(os.path.dirname(__file__), '../test_data/ef_site_config.yml')
    self.test_config = open(test_ef_site_config_file).read()

  def test_site_load_local_file(self):
    """Test parsing a site config"""
    with patch('__builtin__.open', mock_open(read_data=self.test_config)) as mock_file:

      test_config = ef_site_config.EFSiteConfig().load_from_local_file()