示例#1
0
    def test_is_notification_should_be_false(self):
        # Arrange
        envelope = Session('new')

        # Act
        result = Envelope.is_notification(envelope)

        # Assert
        assert result is False
示例#2
0
    def test_is_notification_should_be_true(self):
        # Arrange
        envelope = Notification('consumed')

        # Act
        result = Envelope.is_notification(envelope)

        # Assert
        assert result is True