Ejemplo 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)
Ejemplo n.º 2
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)