Commit 1ce99b13 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Fixes in tests.

parent ecced470
......@@ -108,9 +108,9 @@ class CreateReleaseListAPITest(QHTestCase):
(e0,r1,q1,c1,i1,e1,f1))
# def issueCommission(self):
# self.qh.issue_commission
# self.qh.issue_commission
def setUp(self):
super(CreateReleaseListAPITest,self).setUp()
self.qh.create_entity(create_entity=[("pgerakios", "system", "key1", "")])
self.parentName = "pgerakios"
self.parentKey = "key1"
......
......@@ -4,6 +4,8 @@ from config import printf
from config import rand_string
from random import randint
from quotaholder.api import InvalidDataError
class Data:
def __init__(self, parent, **kwd):
self.context = kwd.get('context', parent.context)
......@@ -92,8 +94,9 @@ class LimitsTest(QHTestCase):
"""
Tests empty policy name
"""
self.helper_set_limits(policy = '', set_limits_has_rejected = False)
self.helper_get_limits(policy='', get_limits_expected_length = 1)
with self.assertRaises(InvalidDataError):
self.helper_set_limits(policy = '', set_limits_has_rejected = False)
self.helper_get_limits(policy = '', get_limits_expected_length = 1)
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment