Merge "Show expected output in test-case error"
This commit is contained in:
commit
653955efda
@ -65,7 +65,11 @@ class AllocatorTestCase(BaseTestCase):
|
|||||||
for i, amount in enumerate(self.results):
|
for i, amount in enumerate(self.results):
|
||||||
print self.agt[i]
|
print self.agt[i]
|
||||||
for i, amount in enumerate(self.results):
|
for i, amount in enumerate(self.results):
|
||||||
self.assertEqual(self.agt[i].amount, amount)
|
self.assertEqual(self.agt[i].amount, amount,
|
||||||
|
'Error at pos %d, '
|
||||||
|
'expected %s and got %s' % (i, self.results,
|
||||||
|
[x.amount
|
||||||
|
for x in self.agt]))
|
||||||
|
|
||||||
|
|
||||||
class MySQLSchemaFixture(fixtures.Fixture):
|
class MySQLSchemaFixture(fixtures.Fixture):
|
||||||
|
Loading…
Reference in New Issue
Block a user