Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias If CompareGtE NameLoad TupleLoad Num Num body ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad NameLoad Dict Str Call NameLoad Str Call NameLoad Str TupleLoad NameLoad Dict Call NameLoad Num Str TupleLoad NameLoad Dict Str Str Call NameLoad Str Str TupleLoad NameLoad Dict Str Call NameLoad Str Str Call NameLoad Str Str TupleLoad NameLoad Dict Str TupleLoad Str Str Call NameLoad Str Str TupleLoad NameLoad Dict Str TupleLoad Num Str Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str TupleLoad NameLoad Dict Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad Num Str Str TupleLoad Num NameLoad TupleLoad Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad Call NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad NameLoad Call NameLoad Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Assert CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad Call NameLoad keyword Call NameLoad Str Num TupleLoad Call NameLoad keyword Call NameLoad Str Num TupleLoad BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str Num TupleLoad BinOpBitOr BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str Num TupleLoad BinOpBitOr BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str Num TupleLoad BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Num TupleLoad BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Num TupleLoad BinOpBitOr Call NameLoad keyword Call NameLoad Num Str Call NameLoad keyword Call NameLoad Num Str keyword Call NameLoad Num Str Num FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr attr Num Assert CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr attr Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad Dict Str Str Str TupleLoad Dict Str Call NameLoad Num Str Str decorator_list ClassDef bases body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad BinOpAdd Call NameLoad Str Call NameLoad Num Str Call NameLoad Num Str TupleLoad BinOpSub Call NameLoad Str Call NameLoad Num Str Call NameLoad Num Str TupleLoad BinOpMult Call NameLoad Str Num Call NameLoad Num Str TupleLoad BinOpMult Call NameLoad Str Call NameLoad Str Call NameLoad Num Str TupleLoad BinOpDiv Call NameLoad Str Num Call NameLoad Num Str TupleLoad BinOpMod Call NameLoad Str Num Call NameLoad Num Str TupleLoad BinOpDiv Call NameLoad Str Call NameLoad Str Call NameLoad Num Str TupleLoad BinOpAdd Call NameLoad Str Call NameLoad Str Call NameLoad Num Str TupleLoad BinOpSub Call NameLoad Str Call NameLoad Str Call NameLoad Num Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num Str keyword Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num Str keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareIs CompareIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str Call NameLoad Str NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str Call NameLoad Str NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str Call NameLoad Str NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str BinOpMult Call NameLoad Str Num NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str BinOpAdd Call NameLoad Str Call NameLoad Num Str NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str BinOpMult Call NameLoad Str Num NameLoad TupleLoad Dict Str Str Call NameLoad Num Str Call NameLoad Num Str Dict Str BinOpAdd Call NameLoad Str Call NameLoad Num Str NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num Str keyword Num Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad Str Call NameLoad Num Str Expr Call AttributeLoad NameLoad attr keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Call NameLoad Num Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr CompareLt NameLoad TupleLoad Num Num keyword Str Assign NameStore ListLoad BinOpAdd Call NameLoad Str Call NameLoad Num Str BinOpMult Call NameLoad Str Call NameLoad Str BinOpDiv Call NameLoad Str Call NameLoad Str BinOpMod Call NameLoad Str Call NameLoad Str BinOpAdd Call NameLoad Str Call NameLoad Str BinOpAdd Call NameLoad Str Call NameLoad Str If CompareGtE NameLoad TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr ListLoad BinOpPow Call NameLoad Str Call NameLoad Str BinOpPow Call NameLoad Str Call NameLoad Str BinOpPow Call NameLoad Str Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num Str With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad NameLoad ClassDef bases body FunctionDef arguments args NameParam defaults body Assert Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Str Assert Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Str Assert CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Str attr Num decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot NameLoad keyword Str Assign NameStore Str ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Num Str Call NameLoad Num Str Assert CompareEq Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad Str Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub Call NameLoad Num Str Call NameLoad Num Str Assert CompareEq Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad Str Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assert CompareEq Call NameLoad Num Str Call NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareNotEq Call NameLoad Num Str Call NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr CompareEq Call NameLoad Num Str Call NameLoad Num Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str Assert CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad Call Call AttributeLoad AttributeLoad NameLoad attr attr CompareGtE NameLoad TupleLoad Num Num keyword Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr attr Str Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr CompareGtE NameLoad TupleLoad Num Num keyword Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad ListLoad Str If NameLoad body Assign NameStore Str orelse Assign NameStore Str Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Num Str TupleLoad NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr CompareLt NameLoad TupleLoad Num Num keyword Str
N/A N/A 
Created on May 7, 2011

@author: jake
 decimal Decimal django VERSION django.core.exceptions ValidationError django.db.models F Q django.utils.six PY2 N/A moneyed N/A pytest moneyed Money djmoney.models.fields AUTO_CONVERT_MONEY MoneyPatched testapp.models AbstractModel BaseModel InheritedModel InheritorModel ModelRelatedToModelWithMoney ModelWithChoicesMoneyField ModelWithDefaultAsDecimal ModelWithDefaultAsFloat ModelWithDefaultAsInt ModelWithDefaultAsMoney ModelWithDefaultAsString ModelWithDefaultAsStringWithCurrency ModelWithNonMoneyField ModelWithTwoMoneyFields ModelWithVanillaMoneyField NullMoneyFieldModel ProxyModel SimpleModel N/A N/A VERSION N/A 1 7 N/A django.db.migrations.writer MigrationWriter N/A pytestmark N/A N/A pytest mark django_db TestVanillaMoneyField N/A N/A test_create_defaults N/A N/A self model_class kwargs expected N/A N/A N/A instance N/A N/A N/A model_class objects create kwargs N/A N/A N/A instance money expected N/A retrieved N/A N/A N/A model_class objects get pk N/A instance pk N/A N/A N/A retrieved money expected N/A N/A N/A N/A pytest mark parametrize model_class, kwargs, expected N/A N/A ModelWithVanillaMoneyField N/A money N/A Money 100.0 N/A Money 100.0 N/A BaseModel N/A N/A Money 0 USD N/A BaseModel N/A money 111.2 N/A Money 111.2 USD N/A BaseModel N/A money N/A Money 123 PLN N/A Money 123 PLN N/A BaseModel N/A money N/A 123 PLN N/A Money 123 PLN N/A BaseModel N/A money N/A 123.0 PLN N/A Money 123 PLN N/A ModelWithDefaultAsMoney N/A N/A Money 0.01 RUB N/A ModelWithDefaultAsFloat N/A N/A Money 12.05 PLN N/A ModelWithDefaultAsStringWithCurrency N/A N/A Money 123 USD N/A ModelWithDefaultAsString N/A N/A Money 123 PLN N/A ModelWithDefaultAsInt N/A N/A Money 123 GHS N/A ModelWithDefaultAsDecimal N/A N/A Money 0.01 CHF test_invalid_values N/A N/A self value N/A N/A N/A N/A N/A pytest raises ValidationError N/A N/A N/A N/A N/A BaseModel objects create money value N/A N/A N/A N/A pytest mark parametrize value N/A N/A 1 USD extra_string N/A 1 None N/A 1 test_save_new_value N/A N/A self field_name N/A N/A N/A N/A N/A N/A ModelWithVanillaMoneyField objects create N/A field_name N/A Money 100.0 N/A retrieved N/A N/A N/A ModelWithVanillaMoneyField objects get N/A N/A setattr retrieved field_name N/A Money 1 N/A moneyed DKK N/A N/A N/A retrieved save N/A retrieved N/A N/A N/A ModelWithVanillaMoneyField objects get N/A N/A N/A getattr retrieved field_name N/A Money 1 N/A moneyed DKK N/A N/A N/A N/A pytest mark parametrize field_name N/A money second_money test_rounding N/A N/A self N/A N/A N/A money N/A Money 100.0623456781123219 N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money money N/A retrieved N/A N/A N/A ModelWithVanillaMoneyField objects get pk N/A instance pk N/A N/A N/A retrieved money N/A Money 100.06 N/A test_comparison_lookup N/A N/A self filters expected_count N/A N/A N/A N/A N/A N/A ModelWithTwoMoneyFields objects bulk_create N/A N/A ModelWithTwoMoneyFields amount1 N/A Money 1 USD amount2 N/A Money 2 USD N/A ModelWithTwoMoneyFields amount1 N/A Money 2 USD amount2 N/A Money 0 USD N/A ModelWithTwoMoneyFields amount1 N/A Money 3 USD amount2 N/A Money 0 USD N/A ModelWithTwoMoneyFields amount1 N/A Money 4 USD amount2 N/A Money 0 GHS N/A ModelWithTwoMoneyFields amount1 N/A Money 5 USD amount2 N/A Money 5 USD N/A N/A N/A N/A N/A N/A N/A ModelWithTwoMoneyFields objects filter filters count expected_count N/A N/A N/A N/A pytest mark parametrize filters, expected_count N/A N/A N/A Q amount1 N/A F amount2 1 N/A N/A Q amount1__gt N/A F amount2 2 N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount2 N/A Money 0 USD 3 N/A N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount1 N/A Money 4 USD N/A Q amount2 N/A Money 0 GHS 2 N/A N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount1 N/A Money 5 USD N/A Q amount2 N/A Money 0 GHS 3 N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount1 N/A Money 4 USD amount2 N/A Money 0 GHS 2 N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount1__gt N/A Money 4 USD amount2 N/A Money 0 GHS 1 N/A N/A N/A Q amount1 N/A Money 1 USD N/A Q amount1__gte N/A Money 4 USD amount2 N/A Money 0 GHS 2 test_exact_match N/A N/A self N/A N/A N/A money N/A Money 100.0 N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money money N/A retrieved N/A N/A N/A ModelWithVanillaMoneyField objects get money money N/A N/A N/A instance pk N/A retrieved pk N/A test_range_search N/A N/A self N/A N/A N/A money N/A Money 3 N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100.0 N/A retrieved N/A N/A N/A ModelWithVanillaMoneyField objects get money__gt money N/A N/A N/A instance pk N/A retrieved pk N/A N/A N/A N/A N/A N/A N/A ModelWithVanillaMoneyField objects filter money__lt money count 0 N/A test_currency_querying N/A N/A self model_class N/A N/A N/A N/A N/A N/A model_class objects create money N/A Money 100.0 N/A moneyed ZWN N/A N/A N/A N/A N/A N/A N/A model_class objects filter money__lt N/A Money 1000 N/A moneyed USD count 0 N/A N/A N/A N/A N/A N/A N/A model_class objects filter money__lt N/A Money 1000 N/A moneyed ZWN count 1 N/A N/A N/A N/A pytest mark parametrize model_class N/A ModelWithVanillaMoneyField ModelWithChoicesMoneyField test_isnull_lookup N/A N/A self N/A N/A N/A N/A N/A N/A NullMoneyFieldModel objects create field None N/A N/A N/A N/A NullMoneyFieldModel objects create field N/A Money 100 USD N/A queryset N/A N/A N/A NullMoneyFieldModel objects filter field None N/A N/A N/A N/A queryset count 1 N/A test_null_default N/A N/A self N/A N/A N/A instance N/A N/A N/A NullMoneyFieldModel objects create N/A N/A N/A instance field None N/A test_get_or_create_respects_currency N/A N/A self kwargs currency N/A N/A N/A N/A instance created N/A N/A N/A ModelWithVanillaMoneyField objects get_or_create kwargs N/A N/A N/A str N/A N/A instance money currency currency currency should be taken into account in get_or_create N/A N/A N/A N/A pytest mark parametrize kwargs, currency N/A N/A N/A money_currency PLN PLN N/A N/A money N/A Money 0 EUR EUR N/A TestFExpressions N/A N/A N/A parametrize_f_objects N/A N/A N/A pytest mark parametrize f_obj, expected N/A N/A N/A N/A F money N/A Money 100 USD N/A Money 200 USD N/A N/A N/A F money N/A Money 100 USD N/A Money 0 USD N/A N/A N/A F money 2 N/A Money 200 USD N/A N/A N/A F money N/A F integer N/A Money 200 USD N/A N/A N/A F money 2 N/A Money 50 USD N/A N/A N/A F money 98 N/A Money 2 USD N/A N/A N/A F money N/A F integer N/A Money 50 USD N/A N/A N/A F money N/A F money N/A Money 200 USD N/A N/A N/A F money N/A F money N/A Money 0 USD test_save N/A N/A self f_obj expected N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100 USD integer 2 N/A N/A instance money f_obj N/A N/A N/A instance save N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects get pk N/A instance pk N/A N/A N/A instance money expected N/A parametrize_f_objects test_f_update N/A N/A self f_obj expected N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100 USD integer 2 N/A N/A N/A N/A ModelWithVanillaMoneyField objects update money f_obj N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects get pk N/A instance pk N/A N/A N/A instance money expected N/A parametrize_f_objects test_filtration N/A N/A self create_kwargs filter_value in_result N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create create_kwargs N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects filter filter_value in_result N/A N/A N/A N/A pytest mark parametrize create_kwargs, filter_value, in_result N/A N/A N/A money second_money N/A Money 100 USD N/A Money 100 USD N/A money N/A F money True N/A N/A money second_money N/A Money 100 USD N/A Money 100 USD N/A money N/A F second_money True N/A N/A money second_money N/A Money 100 USD N/A Money 100 EUR N/A money N/A F second_money False N/A N/A money second_money N/A Money 50 USD N/A Money 100 USD N/A second_money N/A N/A F money 2 True N/A N/A money second_money N/A Money 50 USD N/A Money 100 USD N/A second_money N/A N/A F money N/A Money 50 USD True N/A N/A money second_money N/A Money 50 USD N/A Money 100 EUR N/A second_money N/A N/A F money 2 False N/A N/A money second_money N/A Money 50 USD N/A Money 100 EUR N/A second_money N/A N/A F money N/A Money 50 USD False test_update_fields_save N/A N/A self N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100 USD integer 2 N/A N/A instance money N/A N/A F money N/A Money 100 USD N/A N/A N/A instance save update_fields N/A money N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects get pk N/A instance pk N/A N/A N/A instance money N/A Money 200 USD N/A N/A N/A N/A pytest mark skipif N/A VERSION N/A 1 5 reason Django < 1.5 does not support `update_fields` kwarg N/A INVALID_EXPRESSIONS N/A N/A N/A F money N/A Money 100 EUR N/A N/A F money N/A F money N/A N/A F money N/A F money N/A N/A F money N/A F money N/A N/A F money N/A F integer N/A N/A F money N/A F second_money N/A N/A VERSION N/A 1 7 N/A N/A N/A N/A INVALID_EXPRESSIONS extend N/A N/A N/A F money N/A F money N/A N/A F money N/A F integer N/A N/A F money 2 test_invalid_expressions_access N/A N/A self f_obj N/A N/A N/A instance N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100 USD N/A N/A N/A pytest raises ValidationError N/A N/A N/A instance money f_obj N/A N/A N/A N/A pytest mark parametrize f_obj INVALID_EXPRESSIONS N/A test_find_models_related_to_money_models N/A N/A N/A N/A N/A moneyModel N/A N/A N/A ModelWithVanillaMoneyField objects create money N/A Money 100.0 N/A moneyed ZWN N/A N/A N/A N/A ModelRelatedToModelWithMoney objects create moneyModel moneyModel N/A N/A N/A N/A ModelRelatedToModelWithMoney objects get moneyModel__money N/A Money 100.0 N/A moneyed ZWN N/A N/A N/A N/A ModelRelatedToModelWithMoney objects get moneyModel__money__lt N/A Money 1000.0 N/A moneyed ZWN N/A test_allow_expression_nodes_without_money N/A N/A N/A N/A N/A Allow querying on expression nodes that are not Money N/A desc hundred N/A N/A N/A N/A ModelWithNonMoneyField objects create money N/A Money 100.0 desc desc N/A instance N/A N/A N/A N/A N/A ModelWithNonMoneyField objects filter desc N/A F desc get N/A N/A N/A instance desc desc N/A test_base_model N/A N/A N/A N/A N/A N/A N/A N/A BaseModel objects model BaseModel N/A TestInheritance N/A N/A N/A Test inheritance from a concrete and an abstract models test_model N/A N/A self model_class N/A N/A N/A N/A N/A N/A model_class objects model model_class N/A test_fields N/A N/A self model_class N/A N/A N/A first_value N/A Money 100.0 N/A moneyed ZWN N/A second_value N/A Money 200.0 N/A moneyed USD N/A instance N/A N/A N/A model_class objects create money first_value second_field second_value N/A N/A N/A instance money first_value N/A N/A N/A instance second_field second_value N/A N/A N/A N/A N/A pytest mark parametrize model_class N/A InheritedModel InheritorModel TestManager N/A N/A test_manager N/A N/A self N/A N/A N/A N/A hasattr SimpleModel objects N/A test_objects_creation N/A N/A self N/A N/A N/A N/A N/A N/A SimpleModel objects create money N/A Money 100.0 USD N/A N/A N/A N/A N/A SimpleModel objects count 1 N/A N/A TestProxyModel N/A N/A test_instances N/A N/A self N/A N/A N/A N/A N/A N/A ProxyModel objects create money N/A Money 100.0 USD N/A N/A isinstance N/A N/A N/A ProxyModel objects get pk 1 ProxyModel N/A test_patching N/A N/A self N/A N/A N/A N/A N/A N/A ProxyModel objects create money N/A Money 100.0 USD N/A N/A N/A N/A N/A N/A N/A ProxyModel objects filter money__gt N/A Money 50.00 GBP count 0 N/A N/A N/A rates_is_available N/A N/A N/A pytest mark skipif N/A AUTO_CONVERT_MONEY reason You need to install django-money-rates to run this test N/A pytest_plugins pytester TestDifferentCurrencies N/A N/A N/A Test add/sub operations between different currencies test_add N/A N/A self N/A N/A N/A result N/A N/A MoneyPatched 10 EUR N/A Money 1 USD N/A N/A N/A Decimal N/A str N/A round N/A result amount 2 N/A Decimal 10.88 N/A N/A N/A result currency N/A moneyed EUR N/A rates_is_available N/A N/A N/A pytest mark usefixtures patched_convert_money test_sub N/A N/A self N/A N/A N/A result N/A N/A MoneyPatched 10 EUR N/A Money 1 USD N/A N/A N/A Decimal N/A str N/A round N/A result amount 2 N/A Decimal 9.23 N/A N/A N/A result currency N/A moneyed EUR N/A rates_is_available N/A N/A N/A pytest mark usefixtures patched_convert_money test_eq N/A N/A self N/A N/A N/A N/A N/A MoneyPatched 1 EUR N/A Money 1 EUR N/A test_ne N/A N/A self N/A N/A N/A N/A N/A MoneyPatched 1 EUR N/A Money 2 EUR N/A test_exception N/A N/A self N/A N/A N/A N/A N/A pytest raises TypeError N/A N/A N/A N/A MoneyPatched 10 EUR N/A Money 10 USD N/A test_app_is_installed N/A N/A self testdir rates_installed N/A N/A N/A 
        See #173.
         N/A installed_apps N/A djmoney N/A rates_installed N/A N/A N/A N/A installed_apps append djmoney_rates N/A N/A N/A testdir makepyfile test_settings N/A 
        INSTALLED_APPS = %s
        SECRET_KEY = 'foobar'
         installed_apps N/A N/A N/A testdir makepyfile N/A 
        def test_app_is_installed():
            from djmoney.models.fields import AUTO_CONVERT_MONEY
            assert AUTO_CONVERT_MONEY is %s
         rates_installed N/A result N/A N/A testdir runpytest_subprocess --verbose -s --ds test_settings N/A N/A test_app_is_installed.py::test_app_is_installed PASSED N/A N/A result stdout lines N/A N/A N/A N/A pytest mark parametrize rates_installed N/A N/A N/A N/A N/A pytest mark xfail N/A VERSION N/A 1 9 reason djmoney_rates doesn't support Django 1.9+ True False N/A test_manager_instance_access N/A N/A model_class N/A N/A N/A N/A N/A pytest raises AttributeError N/A N/A N/A N/A N/A N/A model_class objects all N/A N/A N/A N/A pytest mark parametrize model_class N/A AbstractModel ModelWithNonMoneyField InheritorModel InheritedModel ProxyModel test_get_field_by_name N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A BaseModel _meta get_field_by_name money N/A 0 __class__ __name__ MoneyField N/A N/A N/A N/A N/A N/A N/A N/A BaseModel _meta get_field_by_name money_currency N/A 0 __class__ __name__ CurrencyField N/A N/A N/A N/A pytest mark skipif N/A VERSION N/A 1 10 reason Django >= 1.10 dropped `get_field_by_name` method of `Options`. test_different_hashes N/A N/A N/A N/A N/A money N/A N/A N/A BaseModel _meta get_field money N/A money_currency N/A N/A N/A BaseModel _meta get_field money_currency N/A N/A N/A hash money N/A hash money_currency N/A test_migration_serialization N/A N/A N/A N/A N/A imports N/A set N/A import djmoney.models.fields N/A PY2 N/A N/A serialized djmoney.models.fields.MoneyPatched(100, b'GBP') N/A N/A serialized djmoney.models.fields.MoneyPatched(100, 'GBP') N/A N/A N/A N/A MigrationWriter serialize N/A MoneyPatched 100 GBP N/A serialized imports N/A N/A N/A N/A pytest mark skipif N/A VERSION N/A 1 7 reason Django < 1.7 handles migrations differently