Changeset 326:46fe057f2605 for pdw/tests/test_pd.py
- Timestamp:
- 03/10/10 12:32:00 (6 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
pdw/tests/test_pd.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdw/tests/test_pd.py
r325 r326 418 418 calc = pd.determine_status(newwork,'ca') 419 419 return calc 420 assert 'confidence' in calc.log 420 421 421 422 def test_uk(self): 422 423 ''' 423 simple parsing of the json to create objects and pass them to the 424 calculators / currently uk calculator is working. not Canadian one 424 test the calculator api for the UK 425 425 ''' 426 426 parsed = json.loads(self.json_data2) … … 428 428 jurisdiction = parsed['jurisdiction'] 429 429 newwork = model.Work.from_dict(workdata) 430 model.Session.remove() 430 431 calc = pd.determine_status(newwork,jurisdiction) 431 432 432 433 print parsed 433 434 return calc 435 assert calc.log>0 434 436 435 437 def test_ca(self): 436 438 ''' 437 simple parsing of the json to create objects and pass them to the 438 calculators / currently uk calculator is working. not Canadian one 439 test the calculator api for Canada 439 440 440 441 ''' … … 443 444 jurisdiction = parsed['jurisdiction'] 444 445 newwork = model.Work.from_dict(workdata) 446 model.Session.remove() 445 447 calc = pd.determine_status(newwork,jurisdiction) 446 448
