Current Path : /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/ |
Current File : //usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyc |
Nc @ s d d l m Z d d l m Z d d l m Z m Z m Z m Z d d l m Z m Z d e f d YZ d e f d YZ d e f d YZ d S( i( t datetime( t ResourcedTestCase( t FakeLaunchpadt FakeResourcet FakeRoott IntegrityError( t FakeLaunchpadResourcet get_applicationt FakeRootTestc B s e Z d Z RS( c C s) t t } | j t | t d S( N( R R t assertTruet isinstanceR ( t selft root_resource( ( sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyt test_create_root_resource# s ( t __name__t __module__R ( ( ( sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyR ! s t FakeResourceTestc B s5 e Z d e f g Z d Z d Z d Z RS( t launchpadc sr t d d t d f d | j _ | j j j g t t } | j d | t d S( s6 A custom C{__repr__} is provided for L{FakeResource}s.t total_sizes test-brancht getBranchesc s S( N( ( t statuses( t branches( sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyt <lambda>/ s s0 <FakeResource branch-page-resource object at %s>N( t dictR t meR t hext idt assertEqualt repr( R t obj_id( ( R sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyt test_repr, s c C sK t d d | j _ | j j } | j d t t | t | d S( s If the fake has a C{name} property it's included in the repr string to make it easier to figure out what it is. t namet foos <FakeEntry person foo at %s>N( R R R R R R R ( R t person( ( sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyt test_repr_with_name6 s c C sl t d d d d } t d | g | j _ t | j j \ } | j d t t | t | d S( s If the fake has an C{id} property it's included in the repr string to make it easier to figure out what it is. R t 1t titles Bug #1t entriess <FakeResource bug 1 at %s>N( R R t bugst listR R R R ( R t bug( ( sM /usr/lib/python2.7/dist-packages/launchpadlib/testing/tests/test_launchpad.pyt test_repr_with_id@ s ( R R R t resourcesR R"