2 from budget_sync
.config
import Config
, ConfigParseError
5 class TestConfig(unittest
.TestCase
):
6 def test_config_parsing(self
):
7 def check_error(text
: str, expected_error_text
: str):
8 with self
.assertRaises(ConfigParseError
) as e
:
10 self
.assertEqual(str(e
.exception
), expected_error_text
)
12 def check(text
: str, expected_repr_text
: str):
13 self
.assertEqual(repr(Config
.from_str(text
)), expected_repr_text
)
15 raise NotImplementedError("finish adding test cases")
18 if __name__
== "__main__":