Exemplo n.º 1
0
def test_calculate_time_worked_over_9_hours():
    data = {
        u'timeworked': u'10 minutes',
        u'starts': 'fri jul 24 13:08:34 2015',
    }
    result = calculate_time_worked(data)
    assert result == '10'
Exemplo n.º 2
0
def test_calculate_time_worked_over_9_hours():
    data = {
        u'timeworked': u'10 minutes',
        u'starts': 'fri jul 24 13:08:34 2015',
    }
    result = calculate_time_worked(data)
    assert result == '10'
Exemplo n.º 3
0
def test_calculate_time_worked_few_ms():
    data = {
        u'timeworked': u'10 minutes',
        u'starts': ctime(time()),
    }
    result = calculate_time_worked(data)
    assert '10.' in result
Exemplo n.º 4
0
def test_calculate_time_worked_few_ms():
    data = {
        u'timeworked': u'10 minutes',
        u'starts': ctime(time()),
    }
    result = calculate_time_worked(data)
    assert '10.' in result