Did I find the right examples for you? yes no

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

src/a/s/astm-0.5.0/astm/tests/test_mapping.py   astm(Download)
    def test_proxy_contains(self):
        obj = self.Thing(numbers=[[i] for i in range(5)])
        self.assertTrue([3] in obj.numbers)
        self.assertTrue([6] not in obj.numbers)
 
    def test_proxy_count(self):
        obj = self.Thing(numbers=[[1], [2], [3]])
    def test_proxy_index(self):
        obj = self.Thing(numbers=[[1], [2], [4]])
        self.assertEqual(1, obj.numbers.index([2]))
 
    def test_proxy_index_range(self):
        obj = self.Thing(numbers=[[1], [2], [4], [5]])
        self.assertEqual(2, obj.numbers.index([4], 2, 3))
 
    def test_fail_proxy_index_for_nonexisted_element(self):
        obj = self.Thing(numbers=[[1], [2], [4]])