<s> """<STR_LIT>""" <EOL> from p4p2p . dht import constants <EOL> import unittest <EOL> class TestConstants ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_ALPHA ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . ALPHA , int , <EOL> "<STR_LIT>" ) <EOL> def test_K ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . K , int , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( <NUM_LIT:0> , constants . K % <NUM_LIT:2> ) <EOL> def test_LOOKUP_TIMEOUT ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . LOOKUP_TIMEOUT , int , <EOL> "<STR_LIT>" ) <EOL> def test_RPC_TIMEOUT ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . RPC_TIMEOUT , int , <EOL> "<STR_LIT>" ) <EOL> def test_REFRESH_TIMEOUT ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . REFRESH_TIMEOUT , int , <EOL> "<STR_LIT>" ) <EOL> def test_REPLICATE_INTERVAL ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . REPLICATE_INTERVAL , int , <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def test_REFRESH_INTERVAL ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . REFRESH_INTERVAL , int , <EOL> "<STR_LIT>" ) <EOL> def test_ALLOWED_RPC_FAILS ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . ALLOWED_RPC_FAILS , int , <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def test_DUPLICATION_COUNT ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . DUPLICATION_COUNT , int , <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) <EOL> def test_EXPIRY_DURATION ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . EXPIRY_DURATION , int , <EOL> "<STR_LIT>" ) <EOL> def test_ERRORS ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIsInstance ( constants . ERRORS , dict , <EOL> "<STR_LIT>" ) </s>
