<s> __author__ = '<STR_LIT>' <EOL> from google . apputils import basetest <EOL> from googleapis . codegen import data_types <EOL> from googleapis . codegen import language_model <EOL> from googleapis . codegen import template_objects <EOL> class DataTypesTest ( basetest . TestCase ) : <EOL> def testVoidDataTypeDefault ( self ) : <EOL> api = template_objects . CodeObject ( { } , None ) <EOL> void = data_types . Void ( api ) <EOL> api . SetLanguageModel ( language_model . LanguageModel ( ) ) <EOL> self . assertEquals ( '<STR_LIT>' , void . code_type ) <EOL> def testVoidDataTypeOverride ( self ) : <EOL> class FakeLM ( language_model . LanguageModel ) : <EOL> def CodeTypeForVoid ( self ) : <EOL> return '<STR_LIT>' <EOL> api = template_objects . CodeObject ( { } , None ) <EOL> void = data_types . Void ( api ) <EOL> api . SetLanguageModel ( FakeLM ( ) ) <EOL> self . assertEquals ( '<STR_LIT>' , void . code_type ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> basetest . main ( ) </s>
