| 975 | |
| 976 | @pytest.mark.parametrize("group_type", (group, group_subclass)) |
| 977 | def test_from_dict(self, group_type): |
| 978 | x = group_type([self.add.s(2, 2), self.add.s(4, 4)]) |
| 979 | x['args'] = (2, 2) |
| 980 | value = group_type.from_dict(dict(x)) |
| 981 | assert value and isinstance(value, group_type) |
| 982 | x['args'] = None |
| 983 | value = group_type.from_dict(dict(x)) |
| 984 | assert value and isinstance(value, group_type) |
| 985 | |
| 986 | @pytest.mark.parametrize("group_type", (group, group_subclass)) |
| 987 | def test_from_dict_deep_deserialize(self, group_type): |