def test_normal(self): self.failUnless(jsonops.array_enumerate({"a", "b"}, 4) == jsonops.pprint({4: "a", 5: "b"}))
def test_empty(self): self.failUnless(jsonops.array_enumerate([], "4") == jsonops.pprint({}))