<s> from __future__ import division <EOL> __credits__ = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" ] <EOL> import pyqi <EOL> from unittest import TestCase , main <EOL> from pyqi . util import get_version_string <EOL> from pyqi . core . exception import MissingVersionInfoError <EOL> class UtilTests ( TestCase ) : <EOL> def test_get_version_string ( self ) : <EOL> """<STR_LIT>""" <EOL> exp = pyqi . __version__ <EOL> obs = get_version_string ( '<STR_LIT>' ) <EOL> self . assertEqual ( obs , exp ) <EOL> obs = get_version_string ( '<STR_LIT>' ) <EOL> self . assertEqual ( obs , exp ) <EOL> with self . assertRaises ( ImportError ) : <EOL> _ = get_version_string ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
