def test_event(self): app = Labyrinth(1, 1, self.set_up_blank_test_scenario) app.deck["118"].playEvent("US", app) self.assertEqual(app.countryResources("Saudi Arabia"), 4) app = Labyrinth(1, 1, self.set_up_blank_test_scenario, ["y"]) app.deck["118"].playEvent("Jihadist", app) self.assertEqual(app.countryResources("Saudi Arabia"), 4) app.deck["118"].playEvent("US", app) self.assertEqual(app.countryResources("Saudi Arabia"), 5)
def test_country_resources(self): app = Labyrinth(1, 1, self.set_up_blank_test_scenario) self.assertTrue(app.countryResources("Iraq") == 3) self.assertTrue(app.countryResources("Egypt") == 3) self.assertTrue(app.countryResources("Syria") == 2) self.assertTrue(app.countryResources("Lebanon") == 1) app.lapsing.append("Oil Price Spike") self.assertTrue(app.countryResources("Iraq") == 4) self.assertTrue(app.countryResources("Egypt") == 3) self.assertTrue(app.countryResources("Syria") == 2) self.assertTrue(app.countryResources("Lebanon") == 1) app.lapsing.append("Biometrics") app.lapsing.append("Oil Price Spike") self.assertTrue(app.countryResources("Iraq") == 5) self.assertTrue(app.countryResources("Egypt") == 3) self.assertTrue(app.countryResources("Syria") == 2) self.assertTrue(app.countryResources("Lebanon") == 1)