13
13
class TestTribe(object):
15
self.b = Tribe("barbarians")
16
self.e = Tribe("empire")
17
self.a = Tribe("atlanteans")
16
self.b = Tribe('barbarians')
17
self.e = Tribe('empire')
18
self.a = Tribe('atlanteans')
19
20
def test_produces(self):
21
"axe", "battleaxe", "broadaxe", "bronzeaxe",
22
"sharpaxe", "warriorsaxe"
23
], self.b.buildings["warmill"].outputs)
22
'axe', 'battleaxe', 'broadaxe', 'bronzeaxe',
23
'sharpaxe', 'warriorsaxe'
24
], self.b.buildings['warmill'].outputs)
25
26
def test_enhancement(self):
26
assert_equal("warmill", self.b.buildings["axefactory"].enhancement)
27
assert_equal('warmill', self.b.buildings['axefactory'].enhancement)
28
29
def test_enhanced_building(self):
29
assert_equal(True, self.b.buildings["warmill"].enhanced_building)
30
assert_equal(False, self.b.buildings["lumberjacks_hut"]
30
assert_equal(True, self.b.buildings['warmill'].enhanced_building)
31
assert_equal(False, self.b.buildings['lumberjacks_hut']
31
32
.enhanced_building)