(cls, chars_used, chain_size)
| 18 | |
| 19 | @classmethod |
| 20 | def new(cls, chars_used, chain_size): |
| 21 | selection, blocks = list(set(chars_used)), [] |
| 22 | for _ in range(chain_size): |
| 23 | _CHAOS.shuffle(selection) |
| 24 | blocks.append(''.join(selection)) |
| 25 | return cls(tuple(blocks)) |
| 26 | |
| 27 | def __init__(self, data): |
| 28 | self.__test_data(data) |
no test coverage detected