Exemple #1
0
 def test_create_laboratory_minimal(self):
     """This is a test for creating a new laboratory, with only the minimum fields being entered"""
     test_laboratory = Laboratory(
         principal_investigator = "Testing",
         institution = Institution.objects.get(pk=1))
     test_laboratory.save()
     self.assertEquals(test_laboratory.__unicode__(), "Testing Laboratory")
Exemple #2
0
 def test_create_laboratory_all_fields(self):
     """This is a test for creating a new recipient object, with all fields being entered"""
     test_laboratory = Laboratory(principal_investigator="Testing",
                                  contact=Contact.objects.get(pk=1),
                                  department="Department of Test Research",
                                  address_line_1="Room 1111",
                                  address_line_2="Test Research Center",
                                  address_line_3="1111 Test Road",
                                  postal_code="11111",
                                  institution=Institution.objects.get(pk=1))
     test_laboratory.save()
     self.assertEquals(test_laboratory.__unicode__(), "Testing Laboratory")
Exemple #3
0
 def test_create_laboratory_all_fields(self):
     """This is a test for creating a new recipient object, with all fields being entered"""
     test_laboratory = Laboratory(
         principal_investigator = "Testing",
         contact = Contact.objects.get(pk=1),
         department = "Department of Test Research",
         address_line_1 = "Room 1111",
         address_line_2 = "Test Research Center",
         address_line_3 = "1111 Test Road",
         postal_code = "11111",
         institution = Institution.objects.get(pk=1))
     test_laboratory.save()
     self.assertEquals(test_laboratory.__unicode__(), "Testing Laboratory")
Exemple #4
0
 def test_create_laboratory_minimal(self):
     """This is a test for creating a new laboratory, with only the minimum fields being entered"""
     test_laboratory = Laboratory(principal_investigator="Testing",
                                  institution=Institution.objects.get(pk=1))
     test_laboratory.save()
     self.assertEquals(test_laboratory.__unicode__(), "Testing Laboratory")