def test_prepend(self): asm = AerospikeClientMock() key = ("a", "b", "c") asm.put(key, {"word": "hell"}) asm.append(key, "word", "o") self.assertEqual({('a', 'b', 'c'): {'word': 'hello'}}, asm.dump()) self.assertEqual( (('a', 'b', 'c'), {'gen': 2, 'ttl': 0}, {'word': 'hello'}), asm.get(key))
def test_prepend(self): asm = AerospikeClientMock() key = ("a", "b", "c") asm.put(key, {"word": "hell"}) asm.append(key, "word", "o") self.assertEqual({('a', 'b', 'c'): {'word': 'hello'}}, asm.dump()) self.assertEqual((('a', 'b', 'c'), { 'gen': 2, 'ttl': 0 }, { 'word': 'hello' }), asm.get(key))