def test_delete(self): bts = self.bts c = Comment(self.authorperm, steem_instance=bts) tx = c.delete(account="test") self.assertEqual((tx["operations"][0][0]), "delete_comment") op = tx["operations"][0][1] self.assertIn(self.author, op["author"])
def test_delete(self): bts = self.bts bts.txbuffer.clear() c = Comment(self.authorperm, blockchain_instance=bts) tx = c.delete(account="test") self.assertEqual((tx["operations"][0][0]), "delete_comment") op = tx["operations"][0][1] self.assertIn(self.author, op["author"])