# Path: edx2canvas/models.py
# class EdxCourse(models.Model):
#     title = models.CharField(max_length=255)
#     org = models.CharField(max_length=128)
#     course = models.CharField(max_length=32)
#     run = models.CharField(max_length=32)
#     key_version = models.IntegerField()
# 
#     def course_key(self):
#         if self.key_version == 0:
#             return "{}/{}/{}".format(self.org, self.course, self.run)
#         if self.key_version == 1:
#             return "course-v1:{}+{}+{}".format(self.org, self.course, self.run)
#         raise NotImplementedError()


from unittest import TestCase
from edx2canvas.models import EdxCourse


class TestEdxCourseModel(TestCase):

    def setUp(self):
        super(TestEdxCourseModel, self).setUp()

# Path: edx2canvas/models.py
# class EdxCourse(models.Model):
#     title = models.CharField(max_length=255)
#     org = models.CharField(max_length=128)
#     course = models.CharField(max_length=32)
#     run = models.CharField(max_length=32)
#     key_version = models.IntegerField()
# 
#     def course_key(self):
#         if self.key_version == 0:
#             return "{}/{}/{}".format(self.org, self.course, self.run)
#         if self.key_version == 1:
#             return "course-v1:{}+{}+{}".format(self.org, self.course, self.run)
#         raise NotImplementedError()


# Path: edx2canvas/tests/test_models.py
from unittest import TestCase
from edx2canvas.models import EdxCourse



class TestEdxCourseModel(TestCase):

    def setUp(self):
        super(TestEdxCourseModel, self).setUp()

        self.course = EdxCourse(