Ejemplo n.º 1
0
 def test_create_institution_all_fields(self):
     """This is a test for creating a new institution object, with all fields being entered"""
     test_institution = Institution(institution="Testing Institution",
                                    institution_type="academic",
                                    city="Test City",
                                    state="Test State",
                                    country="CA")
     test_institution.save()
     self.assertEquals(test_institution.__unicode__(),
                       "Testing Institution")
Ejemplo n.º 2
0
 def test_create_institution_all_fields(self):
     """This is a test for creating a new institution object, with all fields being entered"""
     test_institution = Institution(
         institution="Testing Institution",
         institution_type = "academic",
         city = "Test City",
         state = "Test State",
         country = "CA")
     test_institution.save()
     self.assertEquals(test_institution.__unicode__(), "Testing Institution")
Ejemplo n.º 3
0
 def test_create_institution_minimal(self):
     """This is a test for creating a new institution, with only the minimum fields being entered"""
     test_institution = Institution(institution="Testing Institution")
     test_institution.save()
     self.assertEquals(test_institution.__unicode__(),
                       "Testing Institution")
Ejemplo n.º 4
0
 def test_create_institution_minimal(self):
     """This is a test for creating a new institution, with only the minimum fields being entered"""
     test_institution = Institution(institution="Testing Institution")
     test_institution.save()
     self.assertEquals(test_institution.__unicode__(), "Testing Institution")