Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Dict Str Str Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Dict Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Dict Str Str Str Str Dict Str Str Str Str ListLoad ListLoad Dict Str Str Str Str Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Str ListLoad TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str Str TupleLoad Str ListLoad Str Str TupleLoad Str ListLoad Str Str TupleLoad Str ListLoad Str Str For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Unit tests for the Model utilities. N/A json N/A logging src basetest src.clients bigquery src.csvmatchreplace transform TransformTest N/A N/A basetest TestCase N/A N/A Run all the ModelTests. testTransformRow N/A N/A self N/A N/A N/A row1 N/A true hue blue N/A config N/A columns N/A N/A type wanted transformations N/A N/A bigquery ColumnTypes STRING True N/A N/A match replace ue oo N/A match replace lo ol N/A type wanted N/A N/A bigquery ColumnTypes STRING False N/A type wanted transformations N/A N/A bigquery ColumnTypes STRING True N/A N/A match replace b k N/A N/A transformed_row bad_columns N/A N/A transform TransformRow row1 config N/A N/A N/A self assertEqual N/A len bad_columns 0 N/A N/A N/A self assertEqual N/A len transformed_row 2 N/A N/A N/A self assertEqual transformed_row N/A troo klue N/A N/A N/A N/A config N/A columns N/A 1 N/A wanted True N/A N/A transformed_row2 bad_columns2 N/A N/A transform TransformRow row1 config N/A N/A N/A self assertEqual N/A len bad_columns2 0 N/A N/A N/A self assertEqual N/A len transformed_row2 3 N/A N/A N/A self assertEqual transformed_row2 N/A troo hue klue N/A NOPEtestTransformRowWithBadData N/A N/A self N/A N/A N/A row1 N/A true hue blue N/A t N/A N/A N/A t column_types N/A N/A N/A bigquery ColumnTypes STRING N/A N/A bigquery ColumnTypes INTEGER N/A N/A bigquery ColumnTypes INTEGER N/A N/A t transformations N/A N/A json dumps N/A N/A N/A match replace ue oo N/A match replace lo ol N/A N/A N/A match replace b k N/A N/A t column_wanted N/A True True True N/A N/A bad_columns _ N/A N/A t TransformRow row1 N/A N/A N/A self assertEqual N/A len bad_columns 2 N/A N/A N/A self assertEqual N/A N/A bad_columns N/A 0 index 1 N/A N/A N/A self assertEqual N/A N/A bad_columns N/A 1 index 2 N/A N/A TestNormalizeCellByType N/A N/A basetest TestCase N/A testNormalizeCellByType N/A N/A self N/A N/A N/A types N/A bigquery ColumnTypes N/A N/A N/A self assertEqual N/A N/A transform NormalizeCellByType 0 N/A types STRING N/A N/A N/A self assertEqual N/A N/A transform NormalizeCellByType 1 N/A types INTEGER N/A N/A N/A self assertEqual 1 N/A N/A transform NormalizeCellByType 1 1 N/A types INTEGER N/A N/A N/A self assertRaises N/A transform CellError N/A transform NormalizeCellByType ark 1 N/A types INTEGER N/A N/A N/A self assertEqual N/A N/A transform NormalizeCellByType 2 N/A types FLOAT N/A N/A N/A self assertEqual 1.1 N/A N/A transform NormalizeCellByType 1.1 2 N/A types FLOAT N/A N/A N/A self assertRaises N/A transform CellError N/A transform NormalizeCellByType ark 2 N/A types FLOAT N/A N/A N/A self assertEqual N/A N/A transform NormalizeCellByType 3 N/A types BOOLEAN N/A N/A N/A self assertEqual True N/A N/A transform NormalizeCellByType true 3 N/A types BOOLEAN N/A N/A N/A self assertEqual True N/A N/A transform NormalizeCellByType TRUE 3 N/A types BOOLEAN N/A N/A N/A self assertEqual True N/A N/A transform NormalizeCellByType 1 3 N/A types BOOLEAN N/A N/A N/A self assertEqual False N/A N/A transform NormalizeCellByType False 3 N/A types BOOLEAN N/A N/A N/A self assertRaises N/A transform CellError N/A transform NormalizeCellByType ark 3 N/A types BOOLEAN N/A N/A N/A self assertEqual N/A N/A transform NormalizeCellByType 4 N/A types TIMESTAMP N/A N/A N/A self assertEqual 2013-06-06 00:00:00.000000  N/A N/A transform NormalizeCellByType 2013-06-06 4 N/A types TIMESTAMP N/A N/A N/A self assertRaises N/A transform CellError N/A transform NormalizeCellByType ark 4 N/A types TIMESTAMP N/A testCellsAsString N/A N/A self N/A N/A N/A tests N/A N/A N/A N/A a N/A a N/A a,b N/A a b N/A "a""b",c N/A a"b c N/A a'b,c N/A a'b c N/A "a,b",c N/A a,b c N/A N/A expected row tests N/A N/A N/A N/A self assertEquals expected N/A N/A transform CellsToCsvString row N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A basetest main