Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-mobilvest-0.1.1/mobilvest/tests.py   django-mobilvest(Download)
# -*- coding: utf8 -*-
from django.test import TestCase
from mobilvest.models import SMSReport
from utils import send_to_gate,get_curl_instance,setup_sms_state,update_sms_state
from lxml import etree
    def test_state_parser(self):
        statuses=("not_deliver","expired","deliver","partly_deliver")
        for status in statuses:
            setup_sms_state('+79999999999','test_text',"""<?xml version="1.0" encoding="utf-8"?><response><information number_sms="1" id_sms="493478312" parts="1">send</information></response>""")
            update_sms_state("""<?xml version="1.0" encoding="utf-8"?><response><state id_sms="493478312" time="2012-12-13 11:21:06" err="000">{status}</state></response>""".format(status=status))