| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from __future__ import absolute_import |
||
| 24 | class StringDescription(BaseDescription): |
||
| 25 | """A :py:class:`~hamcrest.core.description.Description` that is stored as a |
||
| 26 | string. |
||
| 27 | |||
| 28 | """ |
||
| 29 | |||
| 30 | def __init__(self): |
||
| 31 | self.out = '' |
||
| 32 | |||
| 33 | def __str__(self): |
||
| 34 | """Returns the description.""" |
||
| 35 | return self.out |
||
| 36 | |||
| 37 | def append(self, string): |
||
| 38 | self.out += six.text_type(string) |
||
| 39 |