Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/d/i/didjvu-0.2.7/tests/test_xmp.py   didjvu(Download)
import os
 
from . common import (
    SkipTest,
    assert_equal,
            # XMP:
            key, metadata_date = pop()
            assert_rfc3339_timestamp(metadata_date)
            assert_equal(key, 'Xmp.xmp.MetadataDate')
            key, modify_date = pop()
            assert_equal(key, 'Xmp.xmp.ModifyDate')
            assert_rfc3339_timestamp(modify_date)
            key, metadata_date = pop()
            assert_equal(key, 'Xmp.xmp.MetadataDate')
            assert_rfc3339_timestamp(metadata_date)
            key, modify_date = pop()
            assert_equal(key, 'Xmp.xmp.ModifyDate')
            assert_rfc3339_timestamp(modify_date)

src/d/i/didjvu-0.2.7/tests/test_timestamp.py   didjvu(Download)
# General Public License for more details.
 
from . common import assert_rfc3339_timestamp
 
from lib import timestamp
 
def test_now():
    result = timestamp.now()
    assert_rfc3339_timestamp(str(result))
def test_explicit_construct():
    result = timestamp.Timestamp(100000)
    assert_rfc3339_timestamp(str(result))
 
# vim:ts=4 sw=4 et