Esempio n. 1
0
    def test_simple_configuration(self):
        factory = get_factory(conf)
        assert_that(factory.name, "textil")
        assert_that(len(factory.production_units), is_(2))

        pu = factory.production_units[0]
        assert_that(pu.rate, is_(5))
    def test_simple_configuration(self):
        factory = get_factory(conf)
        assert_that(factory.name, "textil")
        assert_that(len(factory.production_units), is_(2))

        pu = factory.production_units[0]
        assert_that(pu.rate, is_(5))
Esempio n. 3
0
 def setUp(self):
     machine, spec, stock = create_machine(stocking_zone_size=None)
     self.factory = get_factory(config)
     self.http_client = tornado.httpclient.AsyncHTTPClient()
Esempio n. 4
0
 def setUp(self):
     machine, spec, stock = create_machine(stocking_zone_size=None)
     self.factory = get_factory(config)
     self.http_client = tornado.httpclient.AsyncHTTPClient()