示例#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), [])
示例#2
0
 def test_get_distribution_markers_negative_num_markers(self):
     with npt.assert_raises(ValueError):
         _get_distribution_markers('symbols', [], -1)
示例#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)
示例#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'])
示例#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), [])
示例#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)
示例#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'])