<s> import unittest <EOL> import os <EOL> from combo . reader import Reader <EOL> class TestReader ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . freeze_output = "<STR_LIT>" <EOL> combofile = open ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> combofile . write ( "<STR_LIT>" ) <EOL> combofile . close ( ) <EOL> self . reader = Reader ( ) <EOL> self . expected_match = [ ( "<STR_LIT>" , "<STR_LIT>" ) ] <EOL> def test_combofile_pkgs_match ( self ) : <EOL> pkgs_match = self . reader . combofile_pkgs ( ) <EOL> self . assertListEqual ( pkgs_match , self . expected_match ) <EOL> def test_filter_freeze ( self ) : <EOL> filtered_freeze = self . reader . filter_freeze ( self . freeze_output ) <EOL> self . assertListEqual ( filtered_freeze , self . expected_match ) <EOL> def tearDown ( self ) : <EOL> os . remove ( "<STR_LIT>" ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
