def test_with_changed_attr(self): article = self.Article(title='Some title') assert has_changes(article, exclude=['id']) assert not has_changes(article, exclude=['title'])
def test_without_changed_attr(self): article = self.Article() assert not has_changes(article, exclude=['id'])
def test_with_changed_attr(self): article = self.Article(title='Some title') assert has_changes(article, ['title', 'id'])
def test_without_changed_attr(self): article = self.Article() assert not has_changes(article, ['title'])
def test_with_changed_attr(self, Article): article = Article(title='Some title') assert has_changes(article, 'title')
def test_without_changed_attr(self, Article): article = Article() assert not has_changes(article, 'title')