photo-python/tests/functional/test_actions.py
Pete 55778dcd83 Add support for Action API
Currently doesn't seem to work - server always returns an error
2013-08-19 16:12:10 +01:00

17 lines
592 B
Python

try:
import unittest2 as unittest # Python2.6
except ImportError:
import unittest
from tests.functional import test_base
class TestActionss(test_base.TestBase):
testcase_name = "action API"
# TODO: Enable this test (and write more) once the Actions API is working.
# Currently always returns:
# "Could not find route /action/create.json from /action/create.json"
@unittest.expectedFailure
def test_create_delete(self):
""" Create an action on a photo, then delete it """
action = self.client.action.create(target=self.photos[0])