Skip to content

Instantly share code, notes, and snippets.

@jayd3e
Created July 8, 2012 19:13
Show Gist options
  • Save jayd3e/3072369 to your computer and use it in GitHub Desktop.
Save jayd3e/3072369 to your computer and use it in GitHub Desktop.
Testing Request
import unittest
from clusterflunk.request import ClusterflunkRequest
class TestRequest(unittest.TestCase):
def test_db(self):
request = ClusterflunkRequest({})
db = request.db
self.assertTrue(hasattr(db, 'add'))
def test_user(self):
request = ClusterflunkRequest({})
user = request.user
self.assertIsNot(user, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment