Exemple #1
0
 def testDegreeWithoutResume(self):
     form_data = {
         'major': 'Computer Science',
         'university': 'Auburn University'
     }
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), True)
Exemple #2
0
 def testDegreeUniversity32Chars(self):
     form_data = {
         'resume': self.resume,
         'university': '12345678901234567890123456789012',
         'major': 'Computer Science'
     }
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), True)
Exemple #3
0
 def testDegreeMajor32Chars(self):
     form_data = {
         'resume': self.resume,
         'major': '12345678901234567890123456789012',
         'university': 'Auburn University'
     }
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), True)
Exemple #4
0
 def testDegree(self):
     form_data = {
         'resume': self.resume,
         'university': 'Auburn',
         'major': 'Computer Science',
         'date': '12/31/2004',
         'gpa': '4.0',
         'honors': 'summa cum laude'
     }
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), True)
Exemple #5
0
 def testDegreeWithoutMajor(self):
     form_data = {'resume': self.resume, 'university': 'Auburn University'}
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), False)
Exemple #6
0
 def testDegreeWithoutUniversity(self):
     form_data = {'resume': self.resume, 'major': 'Computer Science'}
     form = DegreeForm(data=form_data)
     self.assertEqual(form.is_valid(), False)