Skip to content

Instantly share code, notes, and snippets.

@piyush0101
Created June 13, 2014 15:16
Show Gist options
  • Save piyush0101/abc74c7b675c327f910e to your computer and use it in GitHub Desktop.
Save piyush0101/abc74c7b675c327f910e to your computer and use it in GitHub Desktop.
from unittest import TestCase
from pecan import conf
import requests
class UpdateDataTest(TestCase):
def test_should_store_data_in_datastore(self):
conf.update({"db": {"url": "mim://localhost:27017/collection"}})
service = "service"
response = requests.post("url")
self.assertEqual(response.json()['name'], service)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment