import datetime
import json
import time

from django.test import TestCase
from bs4 import BeautifulSoup
# Create your tests here.
#
# common = {
#     "status": 0,
#     "code": 0,
#     "message": "",
# }
#
# dic_login = {
#     "name": "lkk",
#     "phone": "1887074211",
#     "avatar": "asfklsajflkdsja",
# }
#
# common['result'] = dic_login
# print(common)

# account = {
#     "user": {
#         "id": "",
#         "username": "name",
#         "phone": "188707421",
#         "avatar": "media/avatars/android/xx.jpg",
#         "desc": "",
#         "sex": 0,
#         "alias": "备注",
#         "friends": 0,
#         "isFriend": False,
#         "modifyAt": "2018/12/15"
#     },
#     "account": "",
#     "isBind": False
# }
#
# info = {
#       "phone":"18870742138",
#       "username": "kevin",
#       "password": "199shadjfk",
#       "avatar": "sdajfklajflksdaj;"
#     }
#
# account.get('user').update(info)
# print(account)

#
# kk = time.strftime("%Y-%m-%dT%H:%M:%S", time.localtime())
# print(kk)
#
# print(datetime.datetime.now().microsecond)
from dwebsocket import websocket

hh = {
    "status": 1,
    "pushId": "uuid",
    "message": ""
}

print(type(json.dumps(hh)))
#
websocket.WebSocket.is_close()