Esempio n. 1
0
 def test_find_active_allocations_excluding_3_null_fors(self):
     request0 = AllocationRequest(project_name='Project0', status='A')
     request0.field_of_research_1 = None
     request0.field_of_research_2 = None
     request0.field_of_research_3 = None
     request0.save()
     allocations = AllocationRequest.find_active_allocations()
     self.assertEquals(2, len(allocations))
Esempio n. 2
0
 def test_find_active_allocations_excluding_3_null_fors(self):
     request0 = AllocationRequest(project_name='Project0', status='A')
     request0.field_of_research_1 = None
     request0.field_of_research_2 = None
     request0.field_of_research_3 = None
     request0.save()
     allocations = AllocationRequest.find_active_allocations()
     self.assertEquals(2, len(allocations))
Esempio n. 3
0
 def test_find_active_allocations_including_new_requests(self):
     request0 = AllocationRequest(project_name='Project0', status='A')
     request0.field_of_research_1 = '11'
     request0.field_of_research_2 = '22'
     request0.field_of_research_3 = '33'
     request0.save()
     allocations = AllocationRequest.find_active_allocations()
     self.assertEquals(3, len(allocations))
Esempio n. 4
0
 def test_find_active_allocations_including_new_requests(self):
     request0 = AllocationRequest(project_name='Project0', status='A')
     request0.field_of_research_1 = '11'
     request0.field_of_research_2 = '22'
     request0.field_of_research_3 = '33'
     request0.save()
     allocations = AllocationRequest.find_active_allocations()
     self.assertEquals(3, len(allocations))