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

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

src/e/o/Eos-HEAD/tests/attribute_calculator/special/test_map_methods.py   Eos(Download)
    def test_keys(self):
        # When we request map keys, they should include all unique
        # attribute IDs w/o duplication
        self.assertCountEqual(self.holder.attributes.keys(), (self.attr1.id, self.attr2.id, self.attr3.id))
    def test_iter(self):
        # Iter should return the same keys as keys(). CountEqual
        # takes any iterable - we just check its contents here,
        # w/o checking format of returned data
        self.assertCountEqual(self.holder.attributes, (self.attr1.id, self.attr2.id, self.attr3.id))