Example #1
0
def test_group_four_has_one_yes():
    assert count_yes_in_group(split_members(
        split_groups(sample_input)[3])) == 1
Example #2
0
def test_group_three_has_three_yes():
    assert count_yes_in_group(split_members(
        split_groups(sample_input)[2])) == 3
Example #3
0
def test_group_five_has_one_unanimous_yes():
    assert count_yes_in_group_unanimous(
        split_members(split_groups(sample_input)[4])) == 1
Example #4
0
def test_group_two_has_zero_unanimous_yes():
    assert count_yes_in_group_unanimous(
        split_members(split_groups(sample_input)[1])) == 0
Example #5
0
def test_group_five_has_one_member():
    assert len(split_members(split_groups(sample_input)[4])) == 1
Example #6
0
def test_group_two_has_three_member():
    assert len(split_members(split_groups(sample_input)[1])) == 3