Mercurial > repos > vimalkumarvelayudhan > riboplot
diff tests/test_riboplot.py @ 6:2ffa8172dce1
Tests for valid RNA Seq bam and warnings when there are no RNA counts
author | Vimalkumar Velayudhan <vimal@biotechcoder.com> |
---|---|
date | Wed, 12 Aug 2015 16:28:43 +0100 |
parents | 8e1efafa6277 |
children | 096c6bbf4a04 |
line wrap: on
line diff
--- a/tests/test_riboplot.py Wed Aug 12 09:53:06 2015 +0100 +++ b/tests/test_riboplot.py Wed Aug 12 16:28:43 2015 +0100 @@ -111,6 +111,12 @@ self.assertIsInstance(counts, dict) self.assertTrue(len(counts) > 0) + def test_invalid_rna_file(self): + """If an invalid RNA file is provided, generate an error message""" + # using transcriptome FASTA file as the invalid RNA file for test + parser = riboplot.create_parser() + args = parser.parse_args(['-b', RIBO_FILE, '-f', TRANSCRIPTOME_FASTA, '-t', TRANSCRIPT_NAME, '-n', TRANSCRIPTOME_FASTA]) + self.assertRaises(ValueError, ribocore.check_optional_arguments, args.ribo_file, args.rna_file) class RiboPlotTestCase(unittest.TestCase): @@ -158,8 +164,3 @@ def test_write_ribo_counts(self): """Write RiboSeq read counts as CSV.""" pass - - @unittest.skip('todo') - def test_plot_read_counts(self): - """Generate riboplots""" - pass