# Path: media_manager/models.py
# class Course(models.Model):
#     lti_context_id = models.CharField(max_length=128, null=True)
#     lti_tool_consumer_instance_guid = models.CharField(max_length=1024, null=True)
#     api_course_id = models.IntegerField(null=True)
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     class Meta(object):
#         verbose_name = 'course'
#         verbose_name_plural = 'courses'
#         unique_together = ("lti_context_id", "lti_tool_consumer_instance_guid")
# 
#     def __unicode__(self):
#         return "{0}".format(self.lti_context_id)
# 
# class CourseModule(models.Model):
#     course = models.ForeignKey('Course', on_delete=models.CASCADE)
#     lti_resource_link_id = models.CharField(max_length=1024, null=False)
#     lti_resource_link_title = models.CharField(max_length=4096, null=False, blank=True, default='')
#     api_collection_id = models.IntegerField(null=True)
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     class Meta(object):
#         verbose_name = 'module'
#         verbose_name_plural = 'module'
# 
#     def __unicode__(self):
#         return "{0}".format(self.lti_resource_link_title)
# 
#     def asData(self):
#         return {
#             "id": self.pk,
#             "collection_id": self.api_collection_id,
#             "resource_link_id": self.lti_resource_link_id,
#         }


from django.test import TestCase
from .models import Course, CourseModule


# Variables for use in unit tests
LTI_CONTEXT_ID = 'some_context_id'
LTI_TOOL_CONSUMER_INSTANCE_GUID = 'some_guid'
API_COURSE_ID = 1
LTI_RESOURCE_LINK_ID = 'some_resource_link_id'
LTI_RESOURCE_LINK_TITLE = 'some_resource_link_title'

# Path: media_manager/models.py
# class Course(models.Model):
#     lti_context_id = models.CharField(max_length=128, null=True)
#     lti_tool_consumer_instance_guid = models.CharField(max_length=1024, null=True)
#     api_course_id = models.IntegerField(null=True)
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     class Meta(object):
#         verbose_name = 'course'
#         verbose_name_plural = 'courses'
#         unique_together = ("lti_context_id", "lti_tool_consumer_instance_guid")
# 
#     def __unicode__(self):
#         return "{0}".format(self.lti_context_id)
# 
# class CourseModule(models.Model):
#     course = models.ForeignKey('Course', on_delete=models.CASCADE)
#     lti_resource_link_id = models.CharField(max_length=1024, null=False)
#     lti_resource_link_title = models.CharField(max_length=4096, null=False, blank=True, default='')
#     api_collection_id = models.IntegerField(null=True)
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     class Meta(object):
#         verbose_name = 'module'
#         verbose_name_plural = 'module'
# 
#     def __unicode__(self):
#         return "{0}".format(self.lti_resource_link_title)
# 
#     def asData(self):
#         return {
#             "id": self.pk,
#             "collection_id": self.api_collection_id,
#             "resource_link_id": self.lti_resource_link_id,
#         }


# Path: media_manager/tests.py
from django.test import TestCase
from .models import Course, CourseModule



# Variables for use in unit tests
LTI_CONTEXT_ID = 'some_context_id'
LTI_TOOL_CONSUMER_INSTANCE_GUID = 'some_guid'
API_COURSE_ID = 1
LTI_RESOURCE_LINK_ID = 'some_resource_link_id'
LTI_RESOURCE_LINK_TITLE = 'some_resource_link_title'

API_COLLECTION_ID = 1