def test_exists(self): item = Base('ident') self.assertFalse(Base.exists(item)) item.save() self.assertTrue(Base.exists(item))