def test_message_sent_time(self) -> None:
    epoch_seconds = 1490472096
    pub_date = datetime.datetime.fromtimestamp(epoch_seconds)
    user_message = MagicMock()
    user_message.message.pub_date = pub_date
    self.assertEqual(sent_time_in_epoch_seconds(user_message), epoch_seconds)
def test_message_sent_time(self) -> None:
    epoch_seconds = 1490472096
    pub_date = datetime.datetime.fromtimestamp(epoch_seconds)
    user_message = MagicMock()
    user_message.message.pub_date = pub_date
    self.assertEqual(sent_time_in_epoch_seconds(user_message), epoch_seconds)