Skip to main content

GAE Testbed is a set of test cases to simplify testing on AppEngine

Project description

This library provides a set of base test cases that can be mixed into your existing test cases.

They provide additional features to sandbox each test (by clearing the DataStore, Memcache, etc) and also add in additional assert style statements.

MailTestCase example:

import unittest
from gaetestbed import MailTestCase

class MyTestCase(unittest.TestCase, MailTestCase):
    def test_email_sent(self):
        send_email_to('') # Some method that sends e-mail...
        self.assertEqual(len(self.get_sent_messages()), 1)

MemcacheTestCase example:

import unittest
from gaetestbed import MemcacheTestCase

class MyTestCase(unittest.TestCase, MemcacheTestCase):
    def test_memcache_gets_hit(self):

        add_to_memcache('something', 'something') # Add something to memcache somehow...


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gaetestbed-0.12.tar.gz (9.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page