Commit 3680ed5c authored by Paul Dardeau's avatar Paul Dardeau
Browse files

Added missing abort of batch in test_batch_initial_state

parent 9d11129a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -38,8 +38,11 @@ class BatchTestCase(BaseTestCase):
            raise common.KineticException("unable to create batch")

    def test_batch_initial_state(self):
        self.assertFalse(self.batch.is_completed())
        self.assertEquals(self.batch.operation_count(), 0)
        is_completed = self.batch.is_completed()
        op_count = self.batch.operation_count()
        self.batch.abort()
        self.assertFalse(is_completed)
        self.assertEquals(op_count, 0)

    def test_batch_operation_count(self):
        key1 = self.buildKey('test_batch_operation_count_1')