Esempio n. 1
0
 def test_get_distribution_markers_zero_markers(self):
     """_get_distribution_markers() should return an empty list."""
     self.assertEqual(_get_distribution_markers('symbols', None, 0), [])
     self.assertEqual(_get_distribution_markers('symbols', ['^'], 0), [])
Esempio n. 2
0
 def test_get_distribution_markers_negative_num_markers(self):
     with npt.assert_raises(ValueError):
         _get_distribution_markers('symbols', [], -1)
Esempio n. 3
0
 def test_get_distribution_markers_bad_marker_type(self):
     """_get_distribution_markers() should raise a ValueError."""
     with npt.assert_raises(ValueError):
         _get_distribution_markers('shapes', [], 3)
Esempio n. 4
0
 def test_get_distribution_markers_empty_marker_list(self):
     """_get_distribution_markers() should return a list of predefined
     matplotlib markers."""
     self.assertEqual(_get_distribution_markers('colors', None, 4),
                      ['b', 'g', 'r', 'c'])
Esempio n. 5
0
 def test_get_distribution_markers_zero_markers(self):
     """_get_distribution_markers() should return an empty list."""
     self.assertEqual(_get_distribution_markers('symbols', None, 0), [])
     self.assertEqual(_get_distribution_markers('symbols', ['^'], 0), [])
Esempio n. 6
0
 def test_get_distribution_markers_bad_marker_type(self):
     """_get_distribution_markers() should raise a ValueError."""
     with npt.assert_raises(ValueError):
         _get_distribution_markers('shapes', [], 3)
Esempio n. 7
0
 def test_get_distribution_markers_empty_marker_list(self):
     """_get_distribution_markers() should return a list of predefined
     matplotlib markers."""
     self.assertEqual(_get_distribution_markers('colors', None, 4),
                      ['b', 'g', 'r', 'c'])