Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)