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