1146
1156
self.fail("Incorrect length: wanted %d, got %d for %r" % (
1147
1157
length, len(obj_with_len), obj_with_len))
1159
def assertLogsError(self, exception_class, func, *args, **kwargs):
1149
1178
def assertPositive(self, val):
1150
1179
"""Assert that val is greater than 0."""
1151
1180
self.assertTrue(val > 0, 'expected a positive value, but got %s' % val)