Revision c2f037ff snf-tools/synnefo_tools/burnin/pithos_tests.py

b/snf-tools/synnefo_tools/burnin/pithos_tests.py
40 40
import random
41 41
import tempfile
42 42

  
43
from synnefo_tools.burnin.common import BurninTests, Proper
43
from synnefo_tools.burnin.common import BurninTests, Proper, \
44
    QPITHOS, QADD, QREMOVE
44 45

  
45 46

  
46 47
# pylint: disable=too-many-public-methods
......
92 93
            # The container is the one choosen during the `create_container'
93 94
            self.clients.pithos.upload_object("test.txt", fout)
94 95
            # Verify quotas
95
            self._check_quotas(diskspace=+os.fstat(fout.fileno()).st_size)
96
            size = os.fstat(fout.fileno()).st_size
97
            changes = \
98
                {self._get_uuid(): [(QPITHOS, QADD, size, None)]}
99
            self._check_quotas(changes)
96 100

  
97 101
    def test_005_download_file(self):
98 102
        """Test downloading the file from Pithos"""
......
116 120
        self.clients.pithos.del_object("test.txt")
117 121

  
118 122
        # Verify quotas
119
        self._check_quotas(diskspace=-int(content_length))
123
        changes = \
124
            {self._get_uuid(): [(QPITHOS, QREMOVE, content_length, None)]}
125
        self._check_quotas(changes)
120 126

  
121 127
        self.info("Removing the container %s", self.created_container)
122 128
        self.clients.pithos.purge_container()

Also available in: Unified diff