GAE Testbed

A set of test cases to simplify testing on AppEngine
Download

GAE Testbed Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • JJ Geewax
  • Publisher web site:
  • http://code.google.com/u/jgeewax/

GAE Testbed Tags


GAE Testbed Description

A set of test cases to simplify testing on AppEngine GAE Testbed is a Python library that 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 unittestfrom gaetestbed import MailTestCaseclass MyTestCase(unittest.TestCase, MailTestCase): def test_email_sent(self): send_email_to('test@example.org') # Some method that sends e-mail... self.assertEmailSent(to='test@example.org') self.assertEqual(len(self.get_sent_messages()), 1)MemcacheTestCase example:import unittestfrom gaetestbed import MemcacheTestCaseclass MyTestCase(unittest.TestCase, MemcacheTestCase): def test_memcache_gets_hit(self): self.assertMemcacheItems(0) self.assertMemcacheHits(0) add_to_memcache('something', 'something') # Add something to memcache somehow... self.assertMemcacheItems(1) self.assertMemcacheHits(0) get_page('/page_that_hits_memcache/') self.assertMemcacheItems(1) self.assertMemcacheHits(1) Requirements: · Python


GAE Testbed Related Software