human
Solve the following python programming problem given the following code:
@pytest.mark.parametrize('spec,    expected_deadline', [('hours=2', dt('2017-07-07T12:00:00.000Z')), ('minutes=30', dt('2017-07-07T10:30:00.000Z')), ('seconds=45', dt('2017-07-07T10:00:45.000Z'))])
def test_parse_deadline(spec, expected_deadline):
assistant
#Here is the Python program you requested.

    """``unit=num`` specs can be translated into ``datetime`` instances.
    """
    class MockDatetime(datetime, ):
        @staticmethod
        def utcnow():
            return dt('2017-07-07T10:00:00.000Z')
    with mock.patch('datetime.datetime', MockDatetime):
        assert (parse_deadline(spec) == expected_deadline)