def test_MergeSubTestsDict(self): a = { 'foo': { 'has_rows': True, 'sub_tests': {'a': {'has_rows': True, 'sub_tests': {}}}, }, 'bar': { 'has_rows': False, 'sub_tests': {'b': {'has_rows': False, 'sub_tests': {}}}, }, } b = { 'bar': {'has_rows': True, 'sub_tests': {}}, 'baz': {'has_rows': False, 'sub_tests': {}}, } self.assertEqual( { 'foo': { 'has_rows': True, 'sub_tests': {'a': {'has_rows': True, 'sub_tests': {}}}, }, 'bar': { 'has_rows': True, 'sub_tests': {'b': {'has_rows': False, 'sub_tests': {}}} }, 'baz': {'has_rows': False, 'sub_tests': {}}, }, list_tests._MergeSubTestsDict(a, b))
def test_MergeSubTestsDict(self): a = { "foo": {"has_rows": True, "sub_tests": {"a": {"has_rows": True, "sub_tests": {}}}}, "bar": {"has_rows": False, "sub_tests": {"b": {"has_rows": False, "sub_tests": {}}}}, } b = {"bar": {"has_rows": True, "sub_tests": {}}, "baz": {"has_rows": False, "sub_tests": {}}} self.assertEqual( { "foo": {"has_rows": True, "sub_tests": {"a": {"has_rows": True, "sub_tests": {}}}}, "bar": {"has_rows": True, "sub_tests": {"b": {"has_rows": False, "sub_tests": {}}}}, "baz": {"has_rows": False, "sub_tests": {}}, }, list_tests._MergeSubTestsDict(a, b), )