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