def test_delete(self): id = dataset.create_from_dict(self.test_data, author_id=self.test_user_id) self.assertIsNotNone(dataset.get(id)) dataset.delete(id) with self.assertRaises(db.exceptions.NoDataFoundException): dataset.get(id)
def test_delete(self): id = dataset.create_from_dict(self.test_data, author_id=self.test_user_id) self.assertIsNotNone(dataset.get(id)) dataset.delete(id) self.assertIsNone(dataset.get(id))