# Path: tests/drf/cases.py
# class MongoengineCase(SimpleTestCase):
#     @classmethod
#     def setUpClass(cls):
#         super(MongoengineCase, cls).setUpClass()
#         mongoengine.connection.disconnect()
#         mongoengine.connect('test_djangular')
#         cls.setUpClassData()
# 
#     @classmethod
#     def setUpClassData(cls):
#         pass
# 
#     @classmethod
#     def tearDownClass(cls):
#         connection = mongoengine.connection.get_connection()
#         connection.drop_database('test_djangular')
#         mongoengine.connection.disconnect()
# 
# Path: tests/drf/mocks.py

# 
# Path: authentication/models.py
# class User(AbstractUser):
#     tagline = StringField(max_length=140, required=False)
#     created_at = DateTimeField(default=datetime.utcnow)
#     updated_at = DateTimeField()
# 
# 
#     USERNAME_FIELD = 'email'
#     REQUIRED_FIELDS = ['username']


import json
from bson import ObjectId
from django.test.client import Client
from tests.drf.cases import MongoengineCase
from tests.drf.mocks import mock_user1, mock_user2
from authentication.models import User
# -*- coding: utf-8 -*-


class AuthenticationCase(MongoengineCase):

    @classmethod
    def setUpClassData(cls):

# Path: tests/drf/cases.py
# class MongoengineCase(SimpleTestCase):
#     @classmethod
#     def setUpClass(cls):
#         super(MongoengineCase, cls).setUpClass()
#         mongoengine.connection.disconnect()
#         mongoengine.connect('test_djangular')
#         cls.setUpClassData()
# 
#     @classmethod
#     def setUpClassData(cls):
#         pass
# 
#     @classmethod
#     def tearDownClass(cls):
#         connection = mongoengine.connection.get_connection()
#         connection.drop_database('test_djangular')
#         mongoengine.connection.disconnect()
# 
# Path: tests/drf/mocks.py

# 
# Path: authentication/models.py
# class User(AbstractUser):
#     tagline = StringField(max_length=140, required=False)
#     created_at = DateTimeField(default=datetime.utcnow)
#     updated_at = DateTimeField()
# 
# 
#     USERNAME_FIELD = 'email'
#     REQUIRED_FIELDS = ['username']


# Path: authentication/test.py
import json
from bson import ObjectId
from django.test.client import Client
from tests.drf.cases import MongoengineCase
from tests.drf.mocks import mock_user1, mock_user2
from authentication.models import User

# -*- coding: utf-8 -*-


class AuthenticationCase(MongoengineCase):

    @classmethod
    def setUpClassData(cls):

        u = User(email=mock_user1["email"], username=mock_user1["username"])