Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Call NameLoad Num Num Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Dict Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Dict Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Dict Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Str decorator_list decorator_list
N/A datetime date django.db IntegrityError django.test TestCase models Person ManualPrimaryKeyTest GetOrCreateTests N/A TestCase N/A test_get_or_create N/A N/A self N/A N/A N/A p N/A N/A N/A Person objects create first_name John last_name Lennon birthday N/A date 1940 10 9 N/A N/A p created N/A N/A N/A Person objects get_or_create first_name John last_name Lennon defaults N/A birthday N/A date 1940 10 9 N/A N/A N/A self assertFalse created N/A N/A N/A self assertEqual N/A N/A N/A Person objects count 1 N/A N/A p created N/A N/A N/A Person objects get_or_create first_name George last_name Harrison defaults N/A birthday N/A date 1943 2 25 N/A N/A N/A self assertTrue created N/A N/A N/A self assertEqual N/A N/A N/A Person objects count 2 N/A N/A p created N/A N/A N/A Person objects get_or_create first_name George last_name Harrison defaults N/A birthday N/A date 1943 2 25 N/A N/A N/A self assertFalse created N/A N/A N/A self assertEqual N/A N/A N/A Person objects count 2 N/A N/A N/A self assertRaises IntegrityError N/A N/A Person objects get_or_create first_name Tom last_name Smith N/A m N/A N/A N/A ManualPrimaryKeyTest objects create id 1 data Original N/A N/A N/A self assertRaises IntegrityError N/A N/A ManualPrimaryKeyTest objects get_or_create id 1 data Different N/A N/A N/A self assertEqual N/A N/A N/A N/A ManualPrimaryKeyTest objects get id 1 data Original N/A N/A