コード例 #1
0
ファイル: test_config.py プロジェクト: vpavlin/saasherder
 def test_switch_context(self):
     sc = SaasConfig(temp_path)
     sc.add_context("foo", "x", "y", "z")
     sc.switch_context("foo")
     assert sc.config["current"] == "foo"
コード例 #2
0
ファイル: test_config.py プロジェクト: vpavlin/saasherder
 def test_context_add(self):
     sc = SaasConfig(temp_path)
     sc.add_context("foo", "x", "y", "z")
     sc.load()
     assert sc.context_exists("foo")