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
         })
 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}
     )
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {"status": "success", "message": ""})
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {'status': 'success', 'message': ''})
 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})
 def test_check_sample_template_exists(self):
     obs = _check_sample_template_exists(1)
     self.assertEqual(obs, {'status': 'success', 'message': ''})