Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/e/o/Eos-HEAD/tests/stat_tracker/slot/test_launched_drone.py   Eos(Download)
        char_holder = Mock(state=State.offline, item=char_item, _location=None, spec_set=Character(1))
        char_holder.attributes = {Attribute.max_active_drones: 6}
        self.set_character(char_holder)
        self.assertEqual(self.st.launched_drones.total, 6)
        self.set_character(None)
        char_holder = Mock(state=State.offline, item=char_item, _location=None, spec_set=Character(1))
        char_holder.attributes = {}
        self.set_character(char_holder)
        self.assertIsNone(self.st.launched_drones.total)
        self.set_character(None)
    def test_cache(self):
        char_item = self.ch.type_(type_id=1)
        char_holder = Mock(state=State.offline, item=char_item, _location=None, spec_set=Character(1))
        char_holder.attributes = {Attribute.max_active_drones: 6}
        self.set_character(char_holder)