def testDegreeWithoutResume(self): form_data = { 'major': 'Computer Science', 'university': 'Auburn University' } form = DegreeForm(data=form_data) self.assertEqual(form.is_valid(), True)
def testDegreeUniversity32Chars(self): form_data = { 'resume': self.resume, 'university': '12345678901234567890123456789012', 'major': 'Computer Science' } form = DegreeForm(data=form_data) self.assertEqual(form.is_valid(), True)
def testDegreeMajor32Chars(self): form_data = { 'resume': self.resume, 'major': '12345678901234567890123456789012', 'university': 'Auburn University' } form = DegreeForm(data=form_data) self.assertEqual(form.is_valid(), True)
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)
def testDegreeWithoutMajor(self): form_data = {'resume': self.resume, 'university': 'Auburn University'} form = DegreeForm(data=form_data) self.assertEqual(form.is_valid(), False)
def testDegreeWithoutUniversity(self): form_data = {'resume': self.resume, 'major': 'Computer Science'} form = DegreeForm(data=form_data) self.assertEqual(form.is_valid(), False)