예제 #1
0
    def test_has_content_with_channel_data(self):
        # Arrange
        activity_with_channel_data = Activity(channel_data="test-channel-data")

        # Act
        result_with_channel_data = activity_with_channel_data.has_content()

        # Assert
        self.assertEqual(result_with_channel_data, True)
예제 #2
0
    def test_has_content_with_attachment(self):
        # Arrange
        activity_with_attachment = Activity(attachments=[Attachment()])

        # Act
        result_with_attachment = activity_with_attachment.has_content()

        # Assert
        self.assertEqual(result_with_attachment, True)
예제 #3
0
    def test_has_content_with_text(self):
        # Arrange
        activity_with_text = Activity(text="test-text")

        # Act
        result_with_text = activity_with_text.has_content()

        # Assert
        self.assertEqual(result_with_text, True)
예제 #4
0
    def test_has_content_with_summary(self):
        # Arrange
        activity_with_summary = Activity(summary="test-summary")

        # Act
        result_with_summary = activity_with_summary.has_content()

        # Assert
        self.assertEqual(result_with_summary, True)
예제 #5
0
    def test_has_content_empty(self):
        # Arrange
        activity_empty = Activity()

        # Act
        result_empty = activity_empty.has_content()

        # Assert
        self.assertEqual(result_empty, False)