def test_delete(self, _): self.reddit.read_only = False with self.recorder.use_cassette("TestSubmission.test_delete"): submission = Submission(self.reddit, "4b1tfm") submission.delete() assert submission.author is None assert submission.selftext == "[deleted]"
def test_delete(self, _): self.reddit.read_only = False with self.recorder.use_cassette('TestSubmission.test_delete'): submission = Submission(self.reddit, '4b1tfm') submission.delete() assert submission.author is None assert submission.selftext == '[deleted]'
def test_delete(self, _): self.reddit.read_only = False with self.use_cassette(): submission = Submission(self.reddit, "4b1tfm") submission.delete() assert submission.author is None assert submission.selftext == "[deleted]"