Пример #1
0
def test_adjust_start_date_accounts_for_lag():
    # Going back 10 days happens to be Sunday
    args = ['20170118', True]
    actual = churn.adjust_start_date(*args)
    expected = '20170108'

    assert actual == expected
Пример #2
0
def test_adjust_start_date_pins_to_sunday_no_lag():
    # A wednesday
    args = ['20170118', False]
    actual = churn.adjust_start_date(*args)
    expected = '20170115'

    assert actual == expected