added tests for Shop.get_active_inventory, tightened up the test definitions in test_models
added Shop.get_active_inventory and DRYed out views with it