コード例 #1
0
ファイル: tests.py プロジェクト: JosephRedfern/CM2301-9
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
ファイル: tests.py プロジェクト: JosephRedfern/CM2301-9
 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)