old_contents: import json
  import unittest
  import re
  
  import logging as log
  
  from urllib2 import urlopen
  
  
  class TestCouchDbVersion(unittest.TestCase):
      def test_coudb_listening(self):
          urlh = urlopen('http://127.0.0.1:5984/')
          json_data = urlh.read()
          json.loads(json_data)
  
      def test_couchdb_version(self):
          urlh = urlopen('http://127.0.0.1:5984/')
          json_data = urlh.read()
          couch_info = json.loads(json_data)
  
          assert 'couchdb' in couch_info
          assert 'version' in couch_info
          print couch_info['version']
          assert re.match(r"^1\.0\.", couch_info['version'])
  
  
  if __name__ == "__main__":
      log.info('Running Version Unit Tests')
      unittest.main()
  
new_contents: import json
  import unittest
  import re
  
  import logging as log
  
  from urllib2 import urlopen
  
  
  class TestCouchDbVersion(unittest.TestCase):
      def test_coudb_listening(self):
          urlh = urlopen('http://127.0.0.1:5984/')
          json_data = urlh.read()
          json.loads(json_data)
  
      def test_couchdb_version(self):
          urlh = urlopen('http://127.0.0.1:5984/')
          json_data = urlh.read()
          couch_info = json.loads(json_data)
  
          assert 'couchdb' in couch_info
          assert 'version' in couch_info
          print couch_info['version']
          assert re.match(r"^1\.", couch_info['version'])
  
  
  if __name__ == "__main__":
      log.info('Running Version Unit Tests')
      unittest.main()
  
subject: make test just test for version 1, probably not a long term solution