Beispiel #1
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi, DEBUG=True)
     self.environment.database.clear_database()
     self.environment.database.create_account("root", "root",
                                              "administrator")
     self.environment.database.create_course("361", "SoftwareEngineering")
Beispiel #2
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.database.create_account("root", "root",
                                              "administrator")
     self.environment.database.create_course("361", "SoftwareEngineering")
     self.environment.database.create_lab("361", "801")
     self.environment.database.create_account("apoorv", "password", "TA")
Beispiel #3
0
    def setUp(self):
        di = DjangoModelInterface()
        self.environment = Environment(di, DEBUG=True)
        self.environment.database.create_account("root", "root", "supervisor")

        self.environment.database.create_course("361", "SoftwareEngineering")

        self.environment.database.create_account("jayson", "password",
                                                 "instructor")

        self.environment.database.set_course_assignment("361", "jayson")
Beispiel #4
0
    def setUp(self):
        tfi = TextFileInterface(relative_directory="TestDB/")
        self.environment = Environment(tfi, DEBUG=True)
        self.environment.database.clear_database()
        self.environment.database.create_account("root", "root", "supervisor")

        self.environment.database.create_course("361", "SoftwareEngineering")

        self.environment.database.create_account("jayson", "password",
                                                 "instructor")

        self.environment.database.set_course_assignment("361", "jayson")
Beispiel #5
0
    def setUp(self):
        tfi = TextFileInterface(relative_directory="TestDB/")
        self.environment = Environment(tfi, DEBUG=True)
        self.environment.database.clear_database()
        self.environment.database.create_account("root", "root",
                                                 "administrator")

        self.environment.database.create_course("361", "SoftwareEngineering")
        self.environment.database.create_lab("361", "801")
        self.environment.database.create_lab("361", "802")
        self.environment.database.create_lab("361", "803")

        self.environment.database.create_account("apoorv", "password", "TA")

        self.environment.database.set_lab_assignment("361", "802", "apoorv")
Beispiel #6
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
Beispiel #7
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi)
     self.environment.database.clear_database()
Beispiel #8
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.database.create_account("root", "root",
                                              "administrator")
Beispiel #9
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi)
     self.environment.database.clear_database()
     self.environment.database.create_account("root", "root", "administrator")
Beispiel #10
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.user = User("root", "administrator")