Example #1
0
 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]"
Example #2
0
 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]'
Example #3
0
 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]"