updated new mexico test

main
Taylor Hood 2 years ago
parent d5505c4afa
commit e39445282f

@ -11,10 +11,10 @@ class TestNewMexico(unittest.TestCase):
html = new_mexico.fetch_html(url) html = new_mexico.fetch_html(url)
game = new_mexico.get_games(url)[0] game = new_mexico.get_games(url)[0]
game = new_mexico.process_game(game) game = new_mexico.process_game(game)
self.assertEqual(game["name"], "$5,000 ORO") self.assertEqual(game["name"], "Match 3 Tripler")
self.assertEqual(game["price"], 2) self.assertEqual(game["price"], 1)
self.assertEqual(game["game_id"], "545") self.assertEqual(game["game_id"], "521")
self.assertEqual(game["prizes"][0]["prize"], "$5,000") self.assertEqual(game["prizes"][0]["prize"], "$900")
# Perhaps unfortunately in dollars. Cents would be better, eh? # Perhaps unfortunately in dollars. Cents would be better, eh?
self.assertEqual(game["prizes"][0]["value"], 5000) self.assertEqual(game["prizes"][0]["value"], 900)
self.assertEqual(game["num_tx_initial"], 498000) self.assertEqual(game["num_tx_initial"], 670800)

Loading…
Cancel
Save