Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Update plotter unit tests for _best_gridshape changes
Browse files Browse the repository at this point in the history
  • Loading branch information
agoodm committed Sep 29, 2017
1 parent fb02c74 commit 58d6cdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocw/tests/test_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ class TestBestGridShapeFunction(unittest.TestCase):
def test_returned_shape_small(self):
nplots = 2
oldshape = (2, 2)
expected_shape = (1, 2)
expected_shape = (2, 1)
new_shape = plotter._best_grid_shape(nplots, oldshape)
self.assertEqual(new_shape, expected_shape)

def test_returned_shape_large(self):
nplots = 57
oldshape = (220, 12)
expected_shape = (5, 12)
oldshape = (12, 220)
expected_shape = (12, 5)
new_shape = plotter._best_grid_shape(nplots, oldshape)
self.assertEqual(new_shape, expected_shape)

Expand Down

0 comments on commit 58d6cdf

Please sign in to comment.