old_contents: from tornado.testing import AsyncTestCase
  from solnado import SolrClient
  
  
  class ClientTestCase(AsyncTestCase):
      def test_mk_req(self):
          c = SolrClient()
          self.assertEquals(c.base_url, c.mk_req('').url)
          self.assertEquals('GET', c.mk_req('').method)
  
      def test_mk_url(self):
          c = SolrClient()
          url = c.mk_url(*['a','b','c'], **{'key':'value'})
          self.assertEquals('/a/b/c?key=value', url)
  
  
new_contents: import json
  from functools import partial
  from nose.tools import ok_, eq_
  from solnado import SolrClient
  from tornado import gen
  from tornado.testing import AsyncTestCase, gen_test
  
  
  class ClientTestCase(AsyncTestCase):
      def setUp(self):
          super(ClientTestCase, self).setUp()
          self.client = SolrClient()
  
      def test_mk_req(self):
          self.assertEquals(self.client.base_url, self.client.mk_req('').url)
          self.assertEquals('GET', self.client.mk_req('').method)
  
      def test_mk_url(self):
          url = self.client.mk_url(*['a','b','c'], **{'key':'value'})
          self.assertEquals('/a/b/c?key=value', url)
  
      @gen_test(timeout=10)
      def test_core_status(self):
          res = yield gen.Task(partial(self.client.core_status))
          ok_(json.loads(res.body))
          eq_(200, res.code)
  
subject: update tests