Exemple #1
0
    def test_give_settlers_even(self):
        g = Game()
        g[settler_ship] = 4
        g[active] = 0
        g.give_settlers()
        self.assertEqual(sum(g[0 + jobs]), 2)

        g[active] = 5
        g.give_settlers()
        self.assertEqual(sum(g[5 + jobs]), 2)
Exemple #2
0
    def test_give_settlers_odd(self):

        g = Game()
        g[settler_ship] = 5
        g[active] = 0
        g[role_user] = 0
        g.give_settlers()
        self.assertEqual(sum(g[0 + jobs]), 3)

        g[active] = 5
        g.give_settlers()
        self.assertEqual(sum(g[5 + jobs]), 2)