Beispiel #1
0
	def test_todays_article_will_be_public(self):
		p = Article(title='test', content='test', draft=False, date = datetime.today(), commentable=True)
		p.save()
		lbp = retrieveArticles(drafts=False, future=False)
		contained = p in lbp
		p.delete()
		self.assertEqual(contained, True)
Beispiel #2
0
def delete_article(article: Article) -> None:
    article.delete()