def test_sensitivity_specificity_f_binary_single_class():
 assert_equal(1.0, sensitivity_score([1, 1], [1, 1]))
 assert_equal(0.0, specificity_score([1, 1], [1, 1]))
 assert_equal(0.0, sensitivity_score([(-1), (-1)], [(-1), (-1)]))
 assert_equal(0.0, specificity_score([(-1), (-1)], [(-1), (-1)]))

def test_sensitivity_specificity_f_binary_single_class ( ) : assert_equal ( 1.0 , sensitivity_score ( [ 1 , 1 ] , [ 1 , 1 ] ) ) assert_equal ( 0.0 , specificity_score ( [ 1 , 1 ] , [ 1 , 1 ] ) ) assert_equal ( 0.0 , sensitivity_score ( [ ( - 1 ) , ( - 1 ) ] , [ ( - 1 ) , ( - 1 ) ] ) ) assert_equal ( 0.0 , specificity_score ( [ ( - 1 ) , ( - 1 ) ] , [ ( - 1 ) , ( - 1 ) ] ) )
test sensitivity and specificity behave with a single positive or negative class .