<s> """<STR_LIT>""" <EOL> from p4p2p . version import VERSION , get_version <EOL> from p4p2p import __version__ <EOL> import unittest <EOL> class TestVersion ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_VERSION ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( tuple , type ( VERSION ) ) <EOL> self . assertTrue ( isinstance ( VERSION [ <NUM_LIT:0> ] , int ) , <EOL> "<STR_LIT>" ) <EOL> self . assertTrue ( isinstance ( VERSION [ <NUM_LIT:1> ] , int ) , <EOL> "<STR_LIT>" ) <EOL> self . assertTrue ( isinstance ( VERSION [ <NUM_LIT:2> ] , int ) , <EOL> "<STR_LIT>" ) <EOL> self . assertTrue ( isinstance ( VERSION [ <NUM_LIT:3> ] , str ) , <EOL> "<STR_LIT>" ) <EOL> self . assertTrue ( VERSION [ <NUM_LIT:3> ] in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" % VERSION [ <NUM_LIT:3> ] ) <EOL> self . assertTrue ( isinstance ( VERSION [ <NUM_LIT:4> ] , int ) , <EOL> "<STR_LIT>" ) <EOL> def test_get_version ( self ) : <EOL> """<STR_LIT>""" <EOL> expected = '<STR_LIT:.>' . join ( [ str ( i ) for i in VERSION ] ) <EOL> actual = get_version ( ) <EOL> self . assertEqual ( expected , actual ) <EOL> def test_dunder_version ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( __version__ , get_version ( ) ) </s>
