python-benedict/tests/github/test_issue_0035.py

22 lines
615 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from benedict import benedict
import unittest
class github_issue_0035_test_case(unittest.TestCase):
"""
2022-02-13 10:35:43 +00:00
This class describes a github issue 0035 test case.
https://github.com/fabiocaccamo/python-benedict/issues/35
To run this specific test:
- For each method comment @unittest.skip decorator
- Run python -m unittest tests.github.test_issue_0035
"""
2020-09-22 12:17:23 +00:00
def test_keypath_separator_inheritance(self):
2022-02-13 10:35:43 +00:00
b = benedict({"a.b": 1}, keypath_separator=None)
c = benedict(b, keypath_separator=None)
self.assertEqual(c.keypath_separator, None)