def test_repr(self): message = SubredditMessage(self.reddit, _data={'id': 'dummy'}) assert repr(message) == 'SubredditMessage(id=\'dummy\')'
def test_str(self): message = SubredditMessage(self.reddit, _data={'id': 'dummy'}) assert str(message) == 'dummy'
def test_unmute(self): self.reddit.read_only = False with self.recorder.use_cassette('TestSubredditMessage.test_unmute'): message = SubredditMessage(self.reddit, _data={'id': '5yr8id'}) message.unmute()
def test_inheritance(self): message = SubredditMessage(self.reddit, _data={'id': 'dummy'}) assert isinstance(message, Message)
def test_mute(self): self.reddit.read_only = False with self.recorder.use_cassette("TestSubredditMessage.test_mute"): message = SubredditMessage(self.reddit, _data={"id": "5yr8id"}) message.mute()
def test_unmute(self): self.reddit.read_only = False with self.use_cassette(): message = SubredditMessage(self.reddit, _data={"id": "5yr8id"}) message.unmute()
def test_mute(self): self.reddit.read_only = False with self.recorder.use_cassette('TestSubredditMessage.test_mute'): message = SubredditMessage(self.reddit, _data={'id': '5yr8id'}) message.mute()
def test_str(self): message = SubredditMessage(self.reddit, _data={"id": "dummy"}) assert str(message) == "dummy"
def test_repr(self): message = SubredditMessage(self.reddit, _data={"id": "dummy"}) assert repr(message) == "SubredditMessage(id='dummy')"
def test_inheritance(self): message = SubredditMessage(self.reddit, _data={"id": "dummy"}) assert isinstance(message, Message)
def test_unmute(self): self.reddit.read_only = False with self.recorder.use_cassette("TestSubredditMessage.test_unmute"): message = SubredditMessage(self.reddit, _data={"id": "5yr8id"}) message.unmute()