Bodega-server: Add a test for puchasing an asset
Review Request #111162 - Created June 21, 2013 and submitted
The test should check for the following: * purchasing an asset the account does not have enough points for * purchase an asset the account does have enough points for * downloading the asset that was purchased * downloading an asset that costs points that was not purchased * downloading a free asset Things that are missing: * confirm points are properly distributed between store and asset owners * confirm download records are correct How can we verify the two above which are missing from the test?
|this should be made part of the `make test_data` run.. it should both process the testdata.sql file as well as ...||Aaron J. Seigo|
these two points: * confirm points are properly distributed between store and asset owners * confirm download records are correct will have to be done with raw sql. see the after function in store.sql for an example of how to run sql from tests directly against the database. queries can be done to pull the relevant information and test against it.