def test_extended_action(self):
    body = dict(add_tweedle=dict(name='test'))
    url = '/fake/servers/abcd/action'
    response = self._send_server_action_request(url, body)
    self.assertEqual(200, response.status_int)
    self.assertEqual('Tweedle Beetle Added.', response.body)
    body = dict(delete_tweedle=dict(name='test'))
    response = self._send_server_action_request(url, body)
    self.assertEqual(200, response.status_int)
    self.assertEqual('Tweedle Beetle Deleted.', response.body)
def test_extended_action(self):
    body = dict(add_tweedle=dict(name='test'))
    url = '/fake/servers/abcd/action'
    response = self._send_server_action_request(url, body)
    self.assertEqual(200, response.status_int)
    self.assertEqual('Tweedle Beetle Added.', response.body)
    body = dict(delete_tweedle=dict(name='test'))
    response = self._send_server_action_request(url, body)
    self.assertEqual(200, response.status_int)
    self.assertEqual('Tweedle Beetle Deleted.', response.body)