Permalink
Browse files

Explicitly test default vs 'start' for feature labels.

This awaits a code change to see if the desired change worked.
  • Loading branch information...
1 parent c68e81f commit 19fae3b5f37fe7451fed51f6cf761c6f854a64d4 @peterjc peterjc committed Mar 16, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 Tests/test_GenomeDiagram.py
@@ -412,14 +412,18 @@ def test_labels(self):
"""Feature labels."""
self.add_track_with_sigils(label=True)
self.add_track_with_sigils(label=True, color="green",
+ #label_position left as default!
label_size=25, label_angle=0)
self.add_track_with_sigils(label=True, color="purple",
label_position="end",
label_size=4, label_angle=90)
self.add_track_with_sigils(label=True, color="blue",
label_position="middle",
label_size=6, label_angle=-90)
- self.assertEqual(len(self.gdd.tracks), 4)
+ self.add_track_with_sigils(label=True, color="cyan",
+ label_position="start",
+ label_size=6, label_angle=-90)
+ self.assertEqual(len(self.gdd.tracks), 5)
self.finish("GD_sigil_labels", circular=True)
def test_arrow_shafts(self):

0 comments on commit 19fae3b

Please sign in to comment.