~chris-rogers/mcdb/mice.cdb.client.api-python_devel

« back to all changes in this revision

Viewing changes to src/test/unittest_base.py

  • Committer: Antony Wilson
  • Date: 2012-03-27 14:25:09 UTC
  • Revision ID: antony.wilson@stfc.ac.uk-20120327142509-4hu7adv1uq37ca3u
python 2.4 stuff and beamline scalars

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import unittest
5
5
from datetime import datetime
6
6
    
 
7
from test import _constants
7
8
from cdb import CdbPermanentError
8
9
from cdb import CdbTemporaryError
9
10
from cdb import CdbError
62
63
    def test_get_version(self):
63
64
        "Test _CdbBase get_version."
64
65
        _cdb = _CdbBase("", "ok")
65
 
        self.assertEquals(_cdb.get_version(), "0.0.2.3")
 
66
        self.assertEquals(_cdb.get_version(), _constants.VERSION)
66
67
    
67
68
    def test_get_status_exception_mesg(self):
68
69
        "Test _StatusHandler."