Пример #1
0
    def test_hashing_hit(self):
        c = SimpleContainer()

        for k, v in self.test_data.items():
            c.set(k, v)

        for k,v in self.test_data.items():
            self.assertEqual(c.get(k), v)
Пример #2
0
    def test_remove_data(self):
        c = SimpleContainer()

        for k, v in self.test_data.items():
            c.set(k, v)

        self.assertEqual(len(c.get_all()), len(self.test_data))
        c.rm("Superman")
        self.assertEqual(len(c.get_all()), len(self.test_data) - 1)