ยปCore Development>Code coverage>Lib/packaging/tests/fake_dists/towel_stuff-0.1/towel_stuff/__init__.py

Python code coverage for Lib/packaging/tests/fake_dists/towel_stuff-0.1/towel_stuff/__init__.py

#countcontent
1n/a# -*- coding: utf-8 -*-
2n/a
3n/aclass Towel(object):
4n/a """A towel, that one should never be without."""
5n/a
6n/a def __init__(self, color='tie-dye'):
7n/a self.color = color
8n/a self.wrapped_obj = None
9n/a
10n/a def wrap(self, obj):
11n/a """Wrap an object up in our towel."""
12n/a self.wrapped_obj = obj
13n/a
14n/a def unwrap(self):
15n/a """Unwrap whatever is in our towel and return whatever it is."""
16n/a obj = self.wrapped_obj
17n/a self.wrapped_obj = None
18n/a return obj