<s> import unittest <EOL> import sys <EOL> sys . path . append ( '<STR_LIT>' ) <EOL> from jsbuild . dependency import Dependency <EOL> class TestDependency ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . dp = Dependency ( ) <EOL> self . dp . src = '<STR_LIT>' <EOL> def testWorkingDir ( self ) : <EOL> self . assertEqual ( self . dp . filename , "<STR_LIT>" ) <EOL> self . assertEqual ( self . dp . working_dir , "<STR_LIT>" ) <EOL> self . dp . src = '<STR_LIT>' <EOL> self . assertEqual ( self . dp . working_dir , '<STR_LIT>' ) <EOL> self . assertEqual ( self . dp . filename , "<STR_LIT:bar>" ) <EOL> self . dp . index = Dependency ( ) <EOL> self . assertEqual ( self . dp . working_dir , '<STR_LIT>' ) <EOL> self . dp . index . src = '<STR_LIT>' <EOL> self . assertEqual ( self . dp . filename , "<STR_LIT:bar>" ) <EOL> self . assertEqual ( self . dp . working_dir , '<STR_LIT>' ) <EOL> def testRead ( self ) : <EOL> self . dp . src = '<STR_LIT>' <EOL> self . assertTrue ( self . dp . read ( ) . find ( "<STR_LIT>" ) > - <NUM_LIT:1> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
