(self)
| 107 | eq_(getter(keyed_tuple), (3, 1, 2)) |
| 108 | |
| 109 | def test_attribute_access(self): |
| 110 | keyed_tuple = self._fixture([1, 2], ["a", "b"]) |
| 111 | eq_(keyed_tuple.a, 1) |
| 112 | eq_(keyed_tuple.b, 2) |
| 113 | |
| 114 | def should_raise(): |
| 115 | keyed_tuple.c |
| 116 | |
| 117 | assert_raises(AttributeError, should_raise) |
| 118 | |
| 119 | def test_contains(self): |
| 120 | keyed_tuple = self._fixture(["x", "y"], ["a", "b"]) |
nothing calls this directly
no test coverage detected