# Path: amon/apps/bookmarks/models.py
# class BookmarksModel(BaseModel):
#     def __init__(self):
#     def create(self, data=None):


from django.test.client import Client
from django.urls import reverse
from django.test import TestCase
from nose.tools import *
from django.contrib.auth import get_user_model
from amon.apps.tags.models import tags_model, tag_groups_model
from amon.apps.bookmarks.models import bookmarks_model

User = get_user_model()


class TestBookmarks(TestCase):

    def setUp(self):
        self.c = Client()
        self.user = User.objects.create_user(password='qwerty', email='foo@test.com')
        

        
        self.c.login(username='foo@test.com', password='qwerty')

    def tearDown(self):
        self.c.logout()
        self.user.delete()



    def _cleanup(self):
        tags_model.collection.remove()
        tag_groups_model.collection.remove()

# Path: amon/apps/bookmarks/models.py
# class BookmarksModel(BaseModel):
#     def __init__(self):
#     def create(self, data=None):


# Path: amon/apps/bookmarks/tests/views_test.py
from django.test.client import Client
from django.urls import reverse
from django.test import TestCase
from nose.tools import *
from django.contrib.auth import get_user_model
from amon.apps.tags.models import tags_model, tag_groups_model
from amon.apps.bookmarks.models import bookmarks_model


User = get_user_model()


class TestBookmarks(TestCase):

    def setUp(self):
        self.c = Client()
        self.user = User.objects.create_user(password='qwerty', email='foo@test.com')
        

        
        self.c.login(username='foo@test.com', password='qwerty')

    def tearDown(self):
        self.c.logout()
        self.user.delete()



    def _cleanup(self):
        tags_model.collection.remove()
        tag_groups_model.collection.remove()

        bookmarks_model.collection.remove()