Revision 18e54648 snf-quotaholder-app/quotaholder_django/test/simpletests.py
b/snf-quotaholder-app/quotaholder_django/test/simpletests.py | ||
---|---|---|
42 | 42 |
Name, Key, Quantity, Capacity, ImportLimit, ExportLimit, Resource, Flags, |
43 | 43 |
Imported, Exported, Returned, Released) |
44 | 44 |
|
45 |
DEFAULT_IMPORTED = 0 |
|
46 |
DEFAULT_EXPORTED = 0 |
|
47 |
DEFAULT_RETURNED = 0 |
|
48 |
DEFAULT_RELEASED = 0 |
|
49 | 45 |
DEFAULT_HOLDING = (0, 0, 0, 0) |
50 | 46 |
|
51 | 47 |
class QHAPITest(QHTestCase): |
... | ... | |
226 | 222 |
q1, c1, il1, el1 = self.new_quota(e1, k1, resource) |
227 | 223 |
|
228 | 224 |
most = max(0, min(c0, il0, q1, el1)) |
229 |
print 'limits', (c0, il0, q1, el1) |
|
230 | 225 |
r = self.qh.issue_commission(clientkey=self.client, target=e0, key=k0, |
231 | 226 |
name='something', |
232 | 227 |
provisions=[(e1, resource, most)]) |
Also available in: Unified diff