예제 #1
0
def test_Activities_start_time_differ_and_are_not_exact():
    a_1 = Activity(1,
                   'act',
                   'loc',
                   start_time=mtdt(18 * 60),
                   end_time=mtdt(19 * 60))
    a_2 = Activity(2,
                   'act',
                   'loc',
                   start_time=mtdt(18 * 60 + 1),
                   end_time=mtdt(19 * 60))

    assert not a_1.is_exact(a_2)
예제 #2
0
def test_Activities_are_exact():
    a_1 = Activity(1,
                   'act',
                   'loc',
                   start_time=mtdt(18 * 60),
                   end_time=mtdt(19 * 60))
    a_2 = Activity(2,
                   'act',
                   'loc',
                   start_time=mtdt(18 * 60),
                   end_time=mtdt(19 * 60))

    assert a_1.is_exact(a_2)