(self, charset, digits)
| 91 | getattr(obj, methodname)(*args) |
| 92 | |
| 93 | def _get_teststrings(self, charset, digits): |
| 94 | base = len(charset) |
| 95 | teststrings = set() |
| 96 | for i in range(base ** digits): |
| 97 | entry = [] |
| 98 | for j in range(digits): |
| 99 | i, m = divmod(i, base) |
| 100 | entry.append(charset[m]) |
| 101 | teststrings.add(''.join(entry)) |
| 102 | teststrings = [self.fixtype(ts) for ts in teststrings] |
| 103 | return teststrings |
| 104 | |
| 105 | def test_add(self): |
| 106 | s = self.fixtype('ab') |
no test coverage detected