예제 #1
0
 def test_check_sample_template_exists_no_template(self):
     obs = _check_sample_template_exists(self.new_study.id)
     self.assertEqual(
         obs, {
             'status':
             'error',
             'message':
             'Sample template %d does not '
             'exist' % self.new_study.id
         })
예제 #2
0
 def test_check_sample_template_exists_no_template(self):
     obs = _check_sample_template_exists(self.new_study.id)
     self.assertEqual(
         obs, {"status": "error", "message": "Sample template %d does not " "exist" % self.new_study.id}
     )
예제 #3
0
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {"status": "success", "message": ""})
예제 #4
0
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {'status': 'success', 'message': ''})
예제 #5
0
 def test_check_sample_template_exists_no_template(self):
     obs = _check_sample_template_exists(self.new_study.id)
     self.assertEqual(obs, {'status': 'error',
                            'message': 'Sample template %d does not '
                            'exist' % self.new_study.id})
예제 #6
0
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {'status': 'success', 'message': ''})