@@ -57,7 +57,7 @@ def test_build_study_info(self):
57
57
self .assertEqual (obs , self .exp )
58
58
59
59
def test_build_study_info_new_study (self ):
60
- Study (1 ).status = 'public'
60
+ ProcessedData (1 ).status = 'public'
61
61
info = {
62
62
'timeseries_type_id' : 1 ,
63
63
'portal_type_id' : 1 ,
@@ -85,10 +85,10 @@ def test_build_study_info_new_study(self):
85
85
', 1)\' ><span class=\' glyphicon glyphicon-file\' aria-hidden=\' '
86
86
'true\' ></span></a> | <a href=\' /study/description/2\' id=\' '
87
87
'study1-title\' >test_study_1</a>' ,
88
- 'num_raw_data' : 0 , 'id' : 2L , 'num_samples' : 'None ' ,
88
+ 'num_raw_data' : 0 , 'id' : 2 , 'num_samples' : '0 ' ,
89
89
'shared' : "<span id='shared_html_2'></span><br/><a class='btn "
90
- "btn-primary' data-toggle='modal' data-target='#share-study-modal- "
91
- "view' onclick='modify_sharing(2);'>Modify</a>" ,
90
+ "btn-primary btn-xs ' data-toggle='modal' data-target='#share-study"
91
+ "-modal- view' onclick='modify_sharing(2);'>Modify</a>" ,
92
92
'pmid' : '' , 'pi' :
93
93
'<a target="_blank" href="mailto:PI_dude@foo.bar">PIDude</a>' })
94
94
self .assertEqual (obs , self .exp )
@@ -305,8 +305,8 @@ class TestSearchStudiesAJAX(TestHandlerBase):
305
305
'bar</a>' ,
306
306
'shared' : '<span id=\' shared_html_1\' ><a target="_blank" href="'
307
307
'mailto:shared@foo.bar">Shared</a></span><br/><a class=\' btn '
308
- 'btn-primary\' data-toggle=\' modal\' data-target=\' #share-study- '
309
- 'modal-view\' onclick=\' modify_sharing(1);\' >Modify</a>' ,
308
+ 'btn-primary btn-xs \' data-toggle=\' modal\' data-target=\' #share'
309
+ '-study- modal-view\' onclick=\' modify_sharing(1);\' >Modify</a>' ,
310
310
'meta_complete' : "<span class='glyphicon glyphicon-ok'>"
311
311
"</span>" ,
312
312
'pmid' : '<a target="_blank" href="http://www.ncbi.nlm.nih.gov/'
@@ -361,6 +361,14 @@ def test_get_failure(self):
361
361
self .assertEqual (response .body , 'Malformed search query. '
362
362
'Please read "search help" and try again.' )
363
363
364
+ response = self .get ('/study/search/' , {
365
+ 'type' : 'standard' ,
366
+ 'user' : 'FAKE@foo.bar' ,
367
+ 'query' : 'ph' ,
368
+ 'sEcho' : '1021'
369
+ })
370
+ self .assertEqual (response .code , 403 )
371
+
364
372
365
373
class TestMetadataSummaryHandler (TestHandlerBase ):
366
374
def test_error_prep_and_sample (self ):
0 commit comments