1
#!/usr/bin/env python -tt
8
from nose.tools import *
10
from tribe import Tribe
13
class TestTribe(object):
15
self.b = Tribe("barbarians")
16
self.e = Tribe("empire")
17
self.a = Tribe("atlanteans")
19
def test_produces(self):
21
"axe", "battleaxe", "broadaxe", "bronzeaxe",
22
"sharpaxe", "warriorsaxe"
23
], self.b.buildings["warmill"].outputs)
25
def test_enhancement(self):
26
assert_equal("warmill", self.b.buildings["axefactory"].enhancement)
28
def test_enhanced_building(self):
29
assert_equal(True, self.b.buildings["warmill"].enhanced_building)
30
assert_equal(False, self.b.buildings["lumberjacks_hut"]