Exemple #1
0
def test_two_digit_year_fails():
    '''Two-year dates gives an error.'''
    all_day = 'TRUE'
    start_date = '01/01/13'
    
    icsconverter.check_dates_and_times(start_date = start_date, all_day = all_day)

# result = nose.run()
Exemple #2
0
def test_two_digit_year_fails():
    '''Two-year dates gives an error.'''
    all_day = 'TRUE'
    start_date = '01/01/13'

    icsconverter.check_dates_and_times(start_date=start_date, all_day=all_day)


# result = nose.run()
Exemple #3
0
def test_dates_and_times_checker():
    '''Proper dates and times for non-all_day event.'''
    start_time = '07:00 pm'
    start_date = '01/01/2014'
    end_time = '22:00'
    end_date = '01/02/2014'
    all_day = 'FALSE'
    subject = 'Subject123'

    assert icsconverter.check_dates_and_times(start_date=start_date,
                                              start_time=start_time,
                                              end_date=end_date,
                                              end_time=end_time,
                                              all_day=all_day,
                                              subject=subject)
Exemple #4
0
def test_dates_and_times_checker():
    '''Proper dates and times for non-all_day event.'''
    start_time = '07:00 pm'
    start_date = '01/01/2014'
    end_time = '22:00'
    end_date = '01/02/2014'
    all_day = 'FALSE'
    subject = 'Subject123'
    
    assert icsconverter.check_dates_and_times(
        start_date = start_date,
        start_time = start_time,
        end_date = end_date,
        end_time = end_time,
        all_day = all_day,
        subject = subject
    )