diff tests/test_riboplot.py @ 12:61c47a1d6a7a

Add a test to check if a valid FASTA file is used (ribocount)
author Vimalkumar Velayudhan <vimal@biotechcoder.com>
date Wed, 19 Aug 2015 11:11:37 +0100
parents 096c6bbf4a04
children 628f82e72d72
line wrap: on
line diff
--- a/tests/test_riboplot.py	Wed Aug 19 10:14:52 2015 +0100
+++ b/tests/test_riboplot.py	Wed Aug 19 11:11:37 2015 +0100
@@ -118,6 +118,7 @@
         args = parser.parse_args(['-b', RIBO_FILE,  '-f', TRANSCRIPTOME_FASTA, '-t', TRANSCRIPT_NAME, '-n', TRANSCRIPTOME_FASTA])
         self.assertRaises(ValueError, ribocore.check_optional_arguments, ribo_file=args.ribo_file, rna_file=args.rna_file)
 
+
 class RiboPlotTestCase(unittest.TestCase):
 
     def test_get_codon_positions(self):
@@ -146,7 +147,7 @@
 
     def test_transcript_with_no_counts(self):
         """If the transcript has no ribocounts, no plot should be produced."""
-        transcript = 'gi|62955616|ref|NM_001017822.1|' # has no reads
+        transcript = 'gi|62955616|ref|NM_001017822.1|'  # has no reads
         output_dir = tempfile.mkdtemp()
         parser = riboplot.create_parser()
         args = parser.parse_args(['-b', RIBO_FILE, '-f', TRANSCRIPTOME_FASTA, '-t', transcript, '-o', output_dir])
@@ -154,13 +155,3 @@
         for fname in ('riboplot.png', 'riboplot.svg', 'RiboCounts.csv'):
             self.assertFalse(os.path.exists(os.path.join(output_dir, fname)))
         shutil.rmtree(output_dir)
-
-    @unittest.skip('todo')
-    def test_get_ribo_counts(self):
-        """Get RiboSeq read counts"""
-        pass
-
-    @unittest.skip('todo')
-    def test_write_ribo_counts(self):
-        """Write RiboSeq read counts as CSV."""
-        pass