#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4


from rapidsms.conf import settings
import rapidsms.contrib.messagelog.app


def test_messagelog():
    app = rapidsms.contrib.messagelog.app.App()
    # Invoke _log, make sure it doesn't blow up regardless of Django version
    app._log('I', {}, "text")

#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

from django.test import TestCase
from rapidsms.tests.harness.base import CreateDataTest
import rapidsms.contrib.messagelog.app


class MessageLogTest(CreateDataTest, TestCase):
    def test_messagelog(self):
        app = rapidsms.contrib.messagelog.app.App(None)
        # Invoke _log, make sure it doesn't blow up regardless of Django version
        contact = self.create_contact()
        app._log('I', {'contact': contact}, "text")

Fix new test, all tests pass under tox