示例#1
0
class CourseworkSubmissionTestCase(TestCase):
    def setUp(self):
        """
        """
        self.user = User.objects.get(username="******")
        self.coursework1 = CourseworkSubmission(marked=True, student=self.user)
        self.coursework2 = CourseworkSubmission(marked=True, student=self.user)

    def test_set_marked(self):
        """
        """
        self.assertEqual(self.coursework1.set_marked(), True)
        self.assertEqual(self.coursework2.set_marked(), True)
    def test_set_unmarked(self):
        """
        """
        self.assertEqual(self.coursework1.set_marked(), True)
        self.assertEqual(self.coursework2.set_marked(), True)
示例#2
0
class CourseworkSubmissionTestCase(TestCase):
    def setUp(self):
        """
        """
        self.user = User.objects.get(username="******")
        self.coursework1 = CourseworkSubmission(marked=True, student=self.user)
        self.coursework2 = CourseworkSubmission(marked=True, student=self.user)

    def test_set_marked(self):
        """
        """
        self.assertEqual(self.coursework1.set_marked(), True)
        self.assertEqual(self.coursework2.set_marked(), True)

    def test_set_unmarked(self):
        """
        """
        self.assertEqual(self.coursework1.set_marked(), True)
        self.assertEqual(self.coursework2.set_marked(), True)
示例#3
0
 def setUp(self):
     """
     """
     self.user = User.objects.get(username="******")
     self.coursework1 = CourseworkSubmission(marked=True, student=self.user)
     self.coursework2 = CourseworkSubmission(marked=True, student=self.user)
示例#4
0
 def setUp(self):
     """
     """
     self.user = User.objects.get(username="******")
     self.coursework1 = CourseworkSubmission(marked=True, student=self.user)
     self.coursework2 = CourseworkSubmission(marked=True, student=self.user)