Changeset 1837

Show
Ignore:
Timestamp:
11/03/08 16:34:31 (2 months ago)
Author:
rmarianski
Message:

update tests with story types

Location:
siteapp/trunk/opengeo/almanac
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • siteapp/trunk/opengeo/almanac/rest.txt

    r1674 r1837  
    3030    >>> request = testing.new_interaction('bob') 
    3131    >>> alm1, s1 = content_setup(app, request, data1, data2) 
     32    >>> s1.type = 'image' 
     33    >>> s1.photoid = '1234' 
    3234    >>> endInteraction() 
    3335 
     
    204206     ('http://xmlns.opengeo.org/almanac/atom#contenttype', 'Story', 'Story')) 
    205207 
     208    >>> story.type = 'text' 
     209 
    206210 
    207211Security 
  • siteapp/trunk/opengeo/almanac/security.txt

    r1481 r1837  
    232232and should be able to delete the story of another:: 
    233233 
     234    >>> app['a1']['third-awesome-story.1'].type = 'text' 
    234235    >>> url = "http://localhost/++rest++app/our-app/a1/third-awesome-story.1" 
    235236    >>> response = http_call('DELETE', url, data=testing.entry1, handle_errors=True, **make_header('dude')) 
  • siteapp/trunk/opengeo/almanac/smoketest.txt

    r1298 r1837  
    2020 
    2121    >>> a1, s1 = testing.setup_basic_content_fixture(app, request, data1, data2) 
     22    >>> s1.type = 'text' 
    2223    >>> endInteraction() 
    2324    >>> alm1 = a1