Exemplo n.º 1
0
 def test_broken_submission_to_object(self):
     self.assert_equals(
         MISSING_OBJECT,
         self.reddit.praw_to_activity(util.Struct(), type='submission'))
Exemplo n.º 2
0
 def test_broken_praw_to_actor(self):
     self.assert_equals(MISSING_OBJECT,
                        self.reddit.praw_to_actor(util.Struct()))
Exemplo n.º 3
0
 def test_broken_praw_to_comment(self):
     self.assert_equals(
         MISSING_OBJECT, self.reddit.praw_to_object(util.Struct(),
                                                    'comment'))
Exemplo n.º 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))