def test_validate_comment_existence_ng_not_exists_comment_id(self): with self.assertRaises(RecordNotFoundError): DBUtil.validate_comment_existence(self.dynamodb, 'piyopiyo')
def test_validate_comment_existence_ok(self): result = DBUtil.validate_comment_existence( self.dynamodb, self.comment_items[0]['comment_id']) self.assertTrue(result)