@@ -235,7 +235,7 @@ def test_prep_template_summary_get_req(self):
235
235
('TCGACCAAACAC' , 1 ), ('TGAGTGGTCTGT' , 1 ),
236
236
('TGCTACAGACGT' , 1 ), ('TGGTTATGGCAC' , 1 ),
237
237
('TTGCACCGTCGA' , 1 )]), ('center_name' , [('ANL' , 27 )]),
238
- ('center_project_name' , [('nan ' , 27 )]),
238
+ ('center_project_name' , [('None ' , 27 )]),
239
239
('emp_status' , [('EMP' , 27 )]),
240
240
('experiment_center' , [('ANL' , 27 )]),
241
241
('experiment_design_description' , [('micro biome of soil and '
@@ -269,7 +269,7 @@ def test_prep_template_summary_get_req(self):
269
269
('target_gene' , [('16S rRNA' , 27 )]),
270
270
('target_subfragment' , [('V4' , 27 )])], 'status' : 'success' ,
271
271
'message' : '' , 'editable' : True }
272
- self .assertEqual (obs , exp )
272
+ self .assertDictEqual (obs , exp )
273
273
274
274
def test_prep_template_summary_get_req_no_access (self ):
275
275
obs = prep_template_summary_get_req (1 , 'demo@microbio.me' )
@@ -451,7 +451,7 @@ def test_prep_template_post_req(self):
451
451
exp = {'status' : 'warning' ,
452
452
'message' : [
453
453
'Both a converter and dtype were specified for column '
454
- 'sample_name - only the converter will be used' , 'Some '
454
+ 'sample_name - only the converter will be used. ' , 'Some '
455
455
'functionality will be disabled due to missing columns:' ,
456
456
'\t EBI submission disabled: center_name, '
457
457
'experiment_design_description, instrument_model, '
@@ -462,7 +462,6 @@ def test_prep_template_post_req(self):
462
462
'description of these fields.' ],
463
463
'file' : 'update.txt' ,
464
464
'id' : 'ignored in test' }
465
-
466
465
self .assertCountEqual (obs ['message' ].split ('\n ' ), exp ['message' ])
467
466
self .assertEqual (obs ['status' ], exp ['status' ])
468
467
self .assertEqual (obs ['file' ], exp ['file' ])
0 commit comments