def test_post_tweet_successful(self):
        self.test_output._last_published = datetime.now() - timedelta(
            seconds=(self.test_output._frequency + 1))
        units = self.test_output.units
        temp = 26
        target = 20
        heat = 0
        cool = 100
        expected_message = self.test_output._message.format(
            units=units, temp=temp, target=target, heat=heat, cool=cool)
        self.test_output.publish_status(20, 26, 0, 100)
        self.test_output._api.statuses.update.assert_called_once_with(
            status=expected_message)
Posting a tweet is sucessful.
dataset/ETHPy150Open amorphic/braubuddy/braubuddy/tests/output/test_twitterapi.py/TwitterAPIOutputPost.test_post_tweet_successful