Example #1
0
def test_should_buy_10_more_maxibons_if_there_are_less_than_2_in_the_fridge_when_grabbing_maxibons_in_group(
        developers):
    office = KarumiHQs()
    initial_maxibons = office.maxibonsLeft()
    office.openFridge(developers)
    expected_maxibons = calculate_maxibons_left(initial_maxibons, developers)
    assert office.maxibonsLeft() == expected_maxibons
Example #2
0
def test_should_always_has_more_than_two_maxibons_in_the_fridge(developer):
    office = KarumiHQs()
    office.openFridge(developer)
    assert office.maxibonsLeft() >= 2
Example #3
0
def test_should_always_has_more_than_two_maxibons_in_the_fridge_even_if_some_karumies_grab_maxibons_in_group(
        developers):
    office = KarumiHQs()
    office.openFridge(developers)
    assert office.maxibonsLeft() > 2
Example #4
0
def test_should_start_the_day_with_10_maxibons():
    office = KarumiHQs()
    assert office.maxibonsLeft() == 10