def test_unix_time_millis():
    """
    Tests that the unix_time function returns the correct value and fails gracefully for strange inputs
    """
    # Aware datetime object
    assert unix_time_millis(DateTime(2017, 1, 1)) == 1483228800000
    assert type(unix_time_millis(DateTime(2017, 1, 1))) == int
    assert unix_time_millis(None) is None
    assert unix_time_millis("test") is None
    assert unix_time_millis(1) is None

    Tests that the unix_time function returns the correct value and fails gracefully for strange inputs
    
tests/utils/test_ctftime.py