Exemple #1
0
 def test_broken_submission_to_object(self):
     self.assert_equals(
         MISSING_OBJECT,
         self.reddit.praw_to_activity(util.Struct(), type='submission'))
Exemple #2
0
 def test_broken_praw_to_actor(self):
     self.assert_equals(MISSING_OBJECT,
                        self.reddit.praw_to_actor(util.Struct()))
Exemple #3
0
 def test_broken_praw_to_comment(self):
     self.assert_equals(
         MISSING_OBJECT, self.reddit.praw_to_object(util.Struct(),
                                                    'comment'))
Exemple #4
0
 def test_suspended_user_to_actor(self):
     suspended = util.Struct(name='mr_suspended', is_suspended=True)
     self.assert_equals(MISSING_OBJECT,
                        self.reddit.praw_to_actor(suspended))