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)
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)
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)
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)
def test_has_content_empty(self): # Arrange activity_empty = Activity() # Act result_empty = activity_empty.has_content() # Assert self.assertEqual(result_empty, False)