Python code coverage for Lib/packaging/tests/fake_dists/towel_stuff-0.1/towel_stuff/__init__.py
| # | count | content |
|---|---|---|
| 1 | n/a | # -*- coding: utf-8 -*- |
| 2 | n/a | |
| 3 | n/a | class Towel(object): |
| 4 | n/a | """A towel, that one should never be without.""" |
| 5 | n/a | |
| 6 | n/a | def __init__(self, color='tie-dye'): |
| 7 | n/a | self.color = color |
| 8 | n/a | self.wrapped_obj = None |
| 9 | n/a | |
| 10 | n/a | def wrap(self, obj): |
| 11 | n/a | """Wrap an object up in our towel.""" |
| 12 | n/a | self.wrapped_obj = obj |
| 13 | n/a | |
| 14 | n/a | def unwrap(self): |
| 15 | n/a | """Unwrap whatever is in our towel and return whatever it is.""" |
| 16 | n/a | obj = self.wrapped_obj |
| 17 | n/a | self.wrapped_obj = None |
| 18 | n/a | return obj |
