Beispiel #1
0
    def test_context_does_not_have_trim_length(self):
        proctype = 'deblur'
        trim = 42

        msg = "Cannot find %s-%dnt for 16S data" % (proctype, trim)
        with self.assertRaisesRegex(ValueError, msg):
            _determine_context(proctype, trim)
Beispiel #2
0
    def test_context_without_processing_type(self):
        proctype = 'something wrong'
        trim = 113

        msg = "Cannot find %s-%dnt for 16S data" % (proctype, trim)
        with self.assertRaisesRegex(ValueError, msg):
            _determine_context(proctype, trim)
Beispiel #3
0
 def test_fetch_454_study(self):
     proctype = 'closed-reference'
     trim = 100
     instrument = 'flx'
     ctx = _determine_context(proctype, trim, instrument)
     self.assertIn('closed-reference', ctx.lower())
     self.assertIn('100nt', ctx.lower())
     self.assertIn('flx', ctx.lower())
Beispiel #4
0
 def test_valid_closed_reference_context(self):
     proctype = 'closed-reference'
     trim = 100
     ctx = _determine_context(proctype, trim)
     self.assertIn('closed-reference', ctx.lower())
     self.assertIn('100nt', ctx.lower())
Beispiel #5
0
 def test_valid_deblur_context(self):
     proctype = 'deblur'
     trim = 100
     ctx = _determine_context(proctype, trim)
     self.assertIn('deblur', ctx.lower())
     self.assertIn('100nt', ctx.lower())