projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
81ed48a
)
clean test account in test setup
author
Sofia Papagiannaki
<papagian@gmail.com>
Tue, 18 Oct 2011 11:53:32 +0000
(14:53 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Tue, 18 Oct 2011 11:53:32 +0000
(14:53 +0300)
tools/test
patch
|
blob
|
history
diff --git
a/tools/test
b/tools/test
index
017a749
..
6fdb107
100755
(executable)
--- a/
tools/test
+++ b/
tools/test
@@
-69,6
+69,7
@@
class BaseTestCase(unittest.TestCase):
def setUp(self):
self.client = Pithos_Client(get_server(), get_auth(), get_user(),
get_api())
+ self._clean_account()
self.invalid_client = Pithos_Client(get_server(), get_auth(), 'invalid',
get_api())
#self.headers = {
@@
-127,6
+128,9
@@
class BaseTestCase(unittest.TestCase):
self.return_codes = (400, 401, 404, 503,)
def tearDown(self):
+ self._clean_account()
+
+ def _clean_account(self):
for c in self.client.list_containers():
while True:
#list objects returns at most 10000 objects