def test_properties():
    message_thread = MessageThread()
    message_thread.thread_id = 12345
    message_thread.read = False
    message_thread.body = 'ABCDE'

    eq_(message_thread.thread_id, 12345)
    eq_(message_thread.read, False)

    try:
        message_thread.body
    except AttributeError:
        pass
示例#2
0
    def test_properties(self):
        message_thread = MessageThread()
        message_thread.thread_id = 12345
        message_thread.read = False
        message_thread.body = 'ABCDE'

        self.assertEqual(12345, message_thread.thread_id)
        self.assertEqual(False, message_thread.read)

        try:
            message_thread.body
        except AttributeError:
            pass
    def test_properties(self):
        message_thread = MessageThread()
        message_thread.thread_id = 12345
        message_thread.read = False
        message_thread.body = 'ABCDE'

        self.assertEqual(12345, message_thread.thread_id)
        self.assertEqual(False, message_thread.read)

        try:
            message_thread.body
        except AttributeError:
            pass
def test_properties():
    message_thread = MessageThread()
    message_thread.thread_id = 12345
    message_thread.read = False
    message_thread.body = "ABCDE"

    eq_(message_thread.thread_id, 12345)
    eq_(message_thread.read, False)

    try:
        message_thread.body
    except AttributeError:
        pass