def test_values(self):
        ts = self.cls_instance()
        self._fill_storage(ts, self.SOME)
        self.assertEqual(len(list(ts.values())), self.SOME)

        test_results_set = set(_rgen(i) for i in range(0, self.SOME))
        for nr in ts.values():
            self.assertIn(nr[1], test_results_set)
            self.assertEqual(NodeID(nr[0]).binary, nr[0])

        # fill once more and count
        self._fill_storage(ts, self.SOME)
        for nr in ts.values():
            self.assertIn(nr[1], test_results_set)
            self.assertEqual(NodeID(nr[0]).binary, nr[0])
        self.assertEqual(len(list(ts.values())), 2 * self.SOME)

        # clear and count
        ts.clear()
        self.assertEqual(len(list(ts.values())), 0)

        # specify node id
        node_id = NodeID()
        self._fill_storage(ts, self.SOME, node_id=node_id)
        for nr in ts.values():
            self.assertIn(nr[1], test_results_set)
            self.assertEqual(NodeID(nr[0]).binary, node_id.binary)

        # remove a result by task_id
        HALF_SOME = self.SOME // 2
        for i in range(0, HALF_SOME):
            ts.remove(_tgen(i))
        for nr in ts.values():
            res = nr[1]
            res_id = res.split('r')[1]
            self.assertGreaterEqual(int(res_id), HALF_SOME)

        # fill more and count
        self._fill_storage(ts, self.SOME)
        # math.ceil because range(0, HALF_SOME)
        expected_count = self.SOME + math.ceil(2.0 / self.SOME)
        self.assertEqual(len(list(ts.values())), expected_count)
dataset/ETHPy150Open BasicWolf/kaylee/kaylee/testsuite/storage_tests.py/TemporalStorageTestsBase.test_values/swapped operands of `/`