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