示例#1
0
def test_message():
    model = Model()
    msg = model.get_message()
    assert msg == False
示例#2
0
def test_message():
    model = Model()
    data = model.get_message().get("allinfo")
    assert data[u"status"] == 200
    assert data[u"ok"] == True
示例#3
0
 def get(self):
     model = Model()
     self.set_header('Content-Type', 'application/json')
     self.write(model.get_message().get("allinfo"))