def test_library_to_flowcell_link(self):
"""
Make sure the library page includes links to the flowcell pages.
+ That work with flowcell IDs that have parenthetical comments.
"""
self.client.login(username='supertest', password='BJOKL5kAj6aFZ6A5')
response = self.client.get('/library/11070/')
# make sure some of our RDF made it.
self.failUnlessEqual(failed_fc_a.get('rel'), 'libns:flowcell')
self.failUnlessEqual(failed_fc_a.get('href'), '/flowcell/30012AAXX/')
+ fc_response = self.client.get(failed_fc_a.get('href'))
+ self.failUnlessEqual(fc_response.status_code, 200)
+ fc_lane_response = self.client.get('/flowcell/30012AAXX/8/')
+ self.failUnlessEqual(fc_lane_response.status_code, 200)
+
def test_lanes_for(self):
def flowcell_detail(request, flowcell_id):
- fc = get_object_or_404(FlowCell, flowcell_id=flowcell_id)
+ fc = get_object_or_404(FlowCell, flowcell_id__startswith=flowcell_id)
fc.update_data_runs()
context = RequestContext(request,
context)
def flowcell_lane_detail(request, flowcell_id, lane_number):
- fc = get_object_or_404(FlowCell, flowcell_id=flowcell_id)
+ fc = get_object_or_404(FlowCell, flowcell_id__startswith=flowcell_id)
lane = get_object_or_404(fc.lane_set, lane_number=lane_number)
fc.update_data_runs()