コード例 #1
0
 def test_y(self):
     nt.assert_equal('y', viz._check_fit_arg('y', 'axname'))
コード例 #2
0
 def test_bad_name(self):
     viz._check_fit_arg('junk', 'axname')
コード例 #3
0
 def test_both(self):
     nt.assert_equal('both', viz._check_fit_arg('both', 'fitprobs'))
     nt.assert_equal('both', viz._check_fit_arg('both', 'fitlogs'))
コード例 #4
0
 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)
コード例 #5
0
 def test_bad_fitarg(self):
     viz._check_fit_arg('junk', 'fitprobs')