def test_consistency_latency(self):
        self.testCount = -1
        mockKey = mock_boto.Key()

        def mockExists():
            self.testCount += 1
            return self.testCount == 1
        mockKey.exists = mockExists
        mockKey.get_contents_as_string = lambda: "Foo bar"
        self._storage.makeKey = lambda x: mockKey
        startTime = time.time()

        content = self._storage.get_content("/FOO")

        waitTime = startTime - time.time()
        assert waitTime >= 0.1, ("Waiting time was less than %sms "
                                 "(actual : %sms)" %
                                 (0.1 * 1000, waitTime * 1000))
        assert content == "Foo bar", ("expected : %s; actual: %s" %
                                      ("Foo bar", content))
dataset/ETHPy150Open docker/docker-registry/tests/test_s3.py/TestDriver.test_consistency_latency/swapped operands of `-`