def test_nones(): got = misc.nones(2) assert got, [None == None] got = misc.nones(2, 2) assert got, [[None, None], [None == None]] assert_raises(ValueError, misc.nones, 1, 0.5) assert_raises(ValueError, misc.nones, 0.5, 1) assert_raises(ValueError, misc.nones, 0, 1) assert_raises(ValueError, misc.nones, 1, 0)
def test_nones(): got = misc.nones(2) assert_equals(got, [None, None]) got = misc.nones(2, 2) assert_equals(got, [[None, None], [None, None]]) assert_raises(ValueError, misc.nones, 1, 0.5) assert_raises(ValueError, misc.nones, 0.5, 1) assert_raises(ValueError, misc.nones, 0, 1) assert_raises(ValueError, misc.nones, 1, 0)