equal
deleted
inserted
replaced
201 } |
201 } |
202 self.assertRaises(ValidationError, self.publish, self.req) |
202 self.assertRaises(ValidationError, self.publish, self.req) |
203 |
203 |
204 |
204 |
205 def test_interval_bound_constraint_success(self): |
205 def test_interval_bound_constraint_success(self): |
206 feid = self.execute('INSERT File X: X name "toto.txt", X data %(data)s', |
206 feid = self.execute('INSERT File X: X data_name "toto.txt", X data %(data)s', |
207 {'data': Binary('yo')})[0][0] |
207 {'data': Binary('yo')})[0][0] |
208 self.req.form = {'eid': ['X'], |
208 self.req.form = {'eid': ['X'], |
209 '__type:X': 'Salesterm', |
209 '__type:X': 'Salesterm', |
210 'amount:X': u'-10', 'edits-amount:X': '', |
210 'amount:X': u'-10', 'edits-amount:X': '', |
211 'described_by_test:X': str(feid), 'edits-described_by_test:X': INTERNAL_FIELD_VALUE, |
211 'described_by_test:X': str(feid), 'edits-described_by_test:X': INTERNAL_FIELD_VALUE, |