<s> import os <EOL> import unittest <EOL> from tarbell . app import TarbellSite <EOL> class TarbellSiteTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> test_dir = os . path . join ( <EOL> os . path . dirname ( os . path . abspath ( __file__ ) ) , '<STR_LIT>' ) <EOL> self . site = TarbellSite ( test_dir ) <EOL> def test_init ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( TypeError , TarbellSite , ) <EOL> def test_filter_files ( self ) : <EOL> name , project , project_path = self . site . projects [ <NUM_LIT:0> ] <EOL> filtered = self . site . filter_files ( project_path ) <EOL> next = filtered . next ( ) <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( len ( next ) , <NUM_LIT:3> ) <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( project_path , next [ <NUM_LIT:0> ] ) <EOL> def test_sort_modules ( self ) : <EOL> """<STR_LIT>""" <EOL> projects = sorted ( self . site . projects , cmp = self . site . sort_modules ) <EOL> self . assertEqual ( projects [ - <NUM_LIT:1> ] [ <NUM_LIT:0> ] , "<STR_LIT>" ) <EOL> def test_load_projects ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( len ( self . site . load_projects ( ) ) , <NUM_LIT:2> ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_preview ( self ) : <EOL> pass <EOL> def test_get_context ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( isinstance ( self . site . get_context ( ) , dict ) ) <EOL> def test_get_context_from_csv ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( isinstance ( self . site . get_context_from_csv ( ) , dict ) ) <EOL> self . site . CONTEXT_SOURCE_FILE = '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> self . assertTrue ( isinstance ( self . site . get_context_from_csv ( ) , dict ) ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_get_context_from_gdoc ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test__get_context_from_gdoc ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_export_xlsx ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_process_xlsx ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_copy_global_values ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_make_headers ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_make_worksheet_data ( self ) : <EOL> pass <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_generate_static_site ( self ) : <EOL> pass <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
