示例#1
0
 def setUp(self):
     self.employeeList = {
         "*****@*****.**":
         ["Jim", "Gaffigan", "Instructor", "T", "123"],
         "*****@*****.**":
         ["Bert", "Kreischer", "Supervisor", "A", "456"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.course = Course(title="Comedy 251", instructor=self.empObj[0])
     self.course.save()
示例#2
0
 def setUp(self):
     self.employeeList = {"*****@*****.**":["Fleetwood","Mac","Instructor","J","123"],
                          "":["","","Instructor","",""]}
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.course1 = Course(title="Class 7", instructor=self.empObj[0])
     self.course1.save()
     self.course2 = Course(title="Class 8")
     self.course2.save()
     self.course3 = Course(title="Class 9", instructor=self.empObj[1])
     self.course3.save()
 def setUp(self):
     self.employeeList = {
         "*****@*****.**": ["Bob", "Dog", "TA", "B", "Bark"],
         "*****@*****.**": ["Hannah", "Dog", "TA", "B", "Bark"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.course = Course(title="Class 11")
     self.course.save()
     self.ta1 = self.empObj[0]
     self.ta2 = self.empObj[1]
 def setUp(self):
     self.client = Client()
     self.employeeList = {
         "*****@*****.**":
         ["Dolores", "Grundhold", "Supervisor", "D", "Ih8Kids"],
         "*****@*****.**":
         ["Bartholomew", "Grundhold", "Supervisor", "B", "GwammaSux"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.soupervisor = self.empObj[0]
     self.suprvisr = self.empObj[1]
示例#5
0
 def setUp(self):
     self.employeeList = {
         "*****@*****.**":
         ["Jim", "Gaffigan", "Instructor", "T", "123"],
         "*****@*****.**": ["Bill", "Burr", "Instructor", "B", "789"],
         "*****@*****.**": ["Bert", "Kreischer", "TA", "A", "456"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.course1 = Course(title="Comedy 251", instructor=self.empObj[0])
     self.course1.save()
     self.course2 = Course(title="Comedy 351")
     self.course2.save()
 def setUp(self):
     self.client = Client()
     self.employeeList = {
         "*****@*****.**": ["Bert", "Kreischer", "TA", "D", "123"],
         "*****@*****.**": ["Tom", "Segurra", "Instructor", "D", "123"],
         "*****@*****.**":
         ["Jim", "Gaffigan", "Supervisor", "L", "123"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.ta = self.empObj[0]
     self.instructor = self.empObj[1]
     self.supervisor = self.empObj[2]
示例#7
0
 def setUp(self):
     self.employeeList = {
         "*****@*****.**":
         ["Jim", "Rachminoff", "Instructor", "T", "123"],
         "*****@*****.**": ["Hungarian", "Waltz", "TA", "A", "456"],
         "*****@*****.**": ["Max", "Volume", "TA", "A", "456"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.client = Client()
     self.instructor = self.empObj[0]
     self.ta1 = self.empObj[1]
     self.ta2 = self.empObj[2]
 def setUp(self):
     self.client = Client()
     self.employeeList = {
         "*****@*****.**": ["Jim", "Gaffigan", "Instructor", "T", "123"],
         "*****@*****.**": ["Bert", "Kreischer", "TA", "A", "456"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.instructor = self.empObj[0]
     self.ta = self.empObj[1]
     self.course = Course.objects.create(title="Comedy 152",
                                         instructor=self.instructor)
     self.course2 = Course.objects.create(title="Comedy 151")
     self.section = Section.objects.create(title="Lab 201",
                                           course=self.course,
                                           emp=self.ta)
示例#9
0
 def setUp(self):
     self.employeeList = {
         "*****@*****.**":
         ["Jim", "Gaffigan", "Instructor", "T", "123"],
         "*****@*****.**": ["Bert", "Kreischer", "TA", "A", "456"]
     }
     self.empObjects = list()
     self.empObjects = createEmp(self.employeeList, self.empObjects)
     self.course = Course(title="Comedy 252", instructor=self.empObjects[0])
     self.course.save()
     self.course2 = Course(title="Comedy 351")
     self.course.save()
     self.section = Section(title="Lab 101",
                            course=self.course,
                            emp=self.empObjects[1])
     self.section.save()
示例#10
0
 def setUp(self):
     self.employeeList = {
         "*****@*****.**": ["john", "doe", "Instructor", "a", "123"],
         "*****@*****.**": ["james", "doe", "Instructor", "a", "123"],
         "*****@*****.**": ["jane", "doe", "TA", "a", "123"],
         "*****@*****.**": ["jack", "doe", "Supervisor", "a", "123"]
     }
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.courseNoInstructor = Course(title="Class 1", instructor=None)
     self.courseNoInstructor.save()
     self.courseHasInstructor = Course.objects.create(
         title="Class 2", instructor=self.empObj[0])
     self.section1 = Section.objects.create(title="Section 1",
                                            course=self.courseNoInstructor)
     self.section2 = Section.objects.create(title="Section 2",
                                            course=self.courseHasInstructor)
示例#11
0
 def setUp(self):
     self.client = Client()
     self.employeeList = {"*****@*****.**":["john","doe","Instructor","a","123"],
                          "*****@*****.**":["james","doe","Instructor","a","123"],
                          "*****@*****.**":["jane","doe","TA","a","123"],
                          "*****@*****.**":["jack","doe","Supervisor","a","123"]}
     self.empObj = list()
     self.empObj = createEmp(self.employeeList, self.empObj)
     self.courseNoInstructor = Course(title="Class 3")
     self.courseNoInstructor.save()
     self.courseHasInstructor = Course(title="Class 4", instructor=self.empObj[0])
     self.courseHasInstructor.save()
     self.section1 = Section(title="Section 3", course=self.courseNoInstructor)
     self.section1.save()
     self.section2 = Section(title="Section 4", course=self.courseHasInstructor)
     self.section2.save()
     self.courses = ["Class 3", "Class 4"]