Revision 29040fef kamaki/clients/tests/astakos.py
b/kamaki/clients/tests/astakos.py | ||
---|---|---|
66 | 66 |
'username'): |
67 | 67 |
self.assertEqual(self.client.term(term), self['astakos', term]) |
68 | 68 |
self.assertTrue(self['astakos', 'email'] in self.client.term('email')) |
69 |
|
|
70 |
def test_list(self): |
|
71 |
self.client.authenticate() |
|
72 |
self._test_list() |
|
73 |
|
|
74 |
def _test_list(self): |
|
75 |
terms = set(['name', 'username', 'uuid', 'email']) |
|
76 |
uuid = 0 |
|
77 |
for r in self.client.list(): |
|
78 |
print('Hum?') |
|
79 |
self.assertTrue(terms.issubset(r.keys())) |
|
80 |
self.assertTrue(uuid != r['uuid'] if uuid else True) |
|
81 |
uuid = r['uuid'] |
Also available in: Unified diff