Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body FunctionDef arguments args defaults vararg kwarg body Return decorator_list orelse Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Str AugAssignAdd NameStore Str AugAssignAdd NameStore Str AugAssignAdd NameStore Str AugAssignMod NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore ListLoad Str Str body TryExcept body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Str AugAssignMod NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore CompareEq Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BoolOpOr NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotIn Str AttributeLoad AttributeLoad NameLoad attr attr body Return Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Str AugAssignMod NameStore TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad NameLoad decorator_list Return NameLoad decorator_list
N/A N/A  Defines the generator function for resource test cases  django.test TestCase tastytools.test.resources TestData tastytools.test.client Client MultiTestCase create_multi_meta helpers prepare_test_post_data generate N/A N/A api setUp N/A None N/A N/A  Generates a set of tests for every Resource N/A N/A setUp None N/A user_setUp N/A N/A N/A args kwargs N/A N/A N/A N/A N/A user_setUp setUp UnderResources N/A MultiTestCase N/A N/A  Generates a set of tests for every Resource  multi_create_test_resource_unicity N/A N/A self resource_name resource N/A N/A N/A  verifies that one and only one object of the resource was
            created when calling create_test_resource
             N/A initial_count N/A len N/A N/A N/A N/A N/A resource _meta object_class objects all N/A N/A N/A resource create_test_resource N/A final_count N/A len N/A N/A N/A N/A N/A resource _meta object_class objects all N/A N/A N/A self assertEqual N/A initial_count 1 final_count N/A staticmethod multi_create_test_resource N/A N/A self resource_name resource N/A N/A N/A  Verifies that the resource's create_test_data method exists and
            it doesn't raise any exceptions when called without any parameters

             N/A N/A N/A N/A N/A resource create_test_resource N/A N/A N/A Exception N/A err N/A N/A msg N/A Could not create test resource for %s resource_name N/A msg N/A %s: %s - %s N/A msg N/A N/A err __class__ __name__ N/A err message N/A N/A N/A self assertTrue False msg N/A staticmethod multi_test_data_register N/A N/A self resource_name resource N/A N/A N/A  verify that the resource has a Test Data generating class
            asssociated to it
             N/A N/A N/A hasattr N/A resource _meta testdata N/A N/A msg Missing example data for resource: %(res)s 
 N/A msg -Did you create a TestData child class for %(res)s?
 N/A msg -Did you register the TestData on your Api? 
 N/A msg -Did you correctly set its resouce='%(res)s' property? N/A msg N/A res resource_name N/A N/A N/A self assertTrue False msg N/A staticmethod multi_testdata_data_existence N/A N/A self resource_name resource N/A N/A N/A  If a resource allows POST(or GET), this test verifies that
            there is test data for such requests

             N/A method N/A POST GET N/A N/A N/A N/A N/A N/A hasattr N/A resource _meta testdata N/A N/A msg Missing testdata data for resource: %s 
Did you forget to define a TestData class for the                            resource? N/A msg resource_name N/A N/A N/A self assertTrue False msg N/A N/A N/A api resource_allows_method resource_name method N/A N/A testdata N/A getattr N/A N/A resource _meta testdata N/A N/A method lower N/A msg Example %s data is not a TestData or dict but %s N/A msg N/A method N/A testdata __class__ N/A is_testdata N/A issubclass N/A testdata __class__ TestData N/A is_dict N/A N/A type testdata dict N/A N/A N/A self assertTrue N/A is_testdata is_dict msg N/A N/A N/A N/A AttributeError KeyError N/A err N/A N/A message Missing testdata %s data for %s resource.: %s N/A message N/A method resource_name err N/A N/A N/A self assertTrue False message N/A staticmethod multi_test_post N/A N/A self resource_name resource N/A N/A N/A  If the resource allows POSTing, this test verifies that such
            call using the example post data will work

             N/A N/A N/A resource can_create N/A N/A post_data N/A prepare_test_post_data self resource N/A post_response N/A N/A N/A self client post N/A N/A resource get_resource_list_uri post_data N/A msg Failed to POST testdata data for resource %sS: %s. R(%s): %s N/A msg N/A resource_name post_data N/A post_response status_code N/A post_response content N/A N/A N/A self assertEqual N/A post_response status_code 201 msg N/A staticmethod multi_testdata_get_detail N/A N/A self resource_name resource N/A N/A N/A  If the resource allows GETing, this test verifies that such
            call returns something similar to the get example data

             N/A N/A N/A api resource_allows_detail resource_name GET N/A N/A N/A uri res N/A N/A resource create_test_resource N/A get_response N/A N/A N/A self client get uri parse json N/A N/A N/A self assertEqual 200 N/A get_response status_code N/A Location: %s
Response (%s):
%s N/A uri N/A get_response status_code N/A get_response data N/A response_dict N/A get_response data N/A object_keys N/A set N/A N/A response_dict keys N/A expected_keys N/A set N/A N/A N/A N/A N/A resource _meta testdata get keys N/A msg GET data does not match the testdata for resource %s - EXAMPLE: %s vs GET: %s N/A msg N/A resource_name expected_keys object_keys N/A N/A N/A self assertEqual expected_keys object_keys msg N/A staticmethod multi_declared_testdata_fields_coherence N/A N/A self resource_name resource N/A N/A N/A N/A GET N/A N/A resource _meta detail_allowed_methods N/A N/A N/A testdata_fields N/A set N/A N/A resource _meta testdata_fields N/A declared_fields N/A set N/A N/A N/A resource declared_fields keys N/A delta N/A testdata_fields declared_fields N/A N/A N/A len delta 0 N/A N/A msg %s.%s field appears on the testdata but it is not declared. N/A msg N/A resource_name N/A N/A delta pop N/A N/A N/A self assertTrue False msg N/A delta N/A declared_fields testdata_fields N/A N/A N/A len delta 0 N/A N/A msg %s.%s field is declared but is missing from testdata. N/A msg N/A resource_name N/A N/A delta pop N/A N/A N/A self assertTrue False msg N/A staticmethod generate_arguments N/A N/A N/A N/A N/A args N/A N/A N/A resource_name resource N/A N/A N/A api _registry items N/A N/A N/A hasattr N/A resource _meta testdata N/A N/A N/A N/A args append N/A resource_name resource N/A args N/A staticmethod generate_test_name N/A N/A resource_name resource N/A N/A N/A resource_name N/A staticmethod setUp N/A N/A self test resource_name resource N/A N/A N/A test_name N/A test __name__ N/A func_name N/A N/A test_name replace multi_ setup_ N/A N/A self client N/A Client N/A N/A hasattr N/A N/A resource _meta testdata func_name N/A N/A N/A N/A getattr N/A N/A resource _meta testdata func_name self N/A N/A user_setUp self test_name resource_name resource N/A staticmethod N/A TestResources N/A TestCase N/A N/A __metaclass__ N/A create_multi_meta UnderResources N/A N/A TestResources N/A