def test_save_new_post_timestamps(self): # Saving a new post should allow you to override auto_add_now- # and auto_now-like functionality. created_ = datetime(1992, 1, 12, 10, 12, 32) p = Post(thread=self.thread, content="bar", author=self.user, created=created_, updated=created_) p.save() eq_(created_, p.created) eq_(created_, p.updated)
def test_save_new_post_timestamps(self): # Saving a new post should allow you to override auto_add_now- # and auto_now-like functionality. created_ = datetime(1992, 1, 12, 10, 12, 32) p = Post(thread=self.thread, content='bar', author=self.user, created=created_, updated=created_) p.save() eq_(created_, p.created) eq_(created_, p.updated)