def test_y(self): nt.assert_equal('y', viz._check_fit_arg('y', 'axname'))
def test_bad_name(self): viz._check_fit_arg('junk', 'axname')
def test_both(self): nt.assert_equal('both', viz._check_fit_arg('both', 'fitprobs')) nt.assert_equal('both', viz._check_fit_arg('both', 'fitlogs'))
def test_None(self): nt.assert_true(viz._check_fit_arg(None, 'fitprobs') is None) nt.assert_true(viz._check_fit_arg(None, 'fitlogs') is None)
def test_bad_fitarg(self): viz._check_fit_arg('junk', 'fitprobs')