(self)
| 47 | assert x.valency_of('foobarbaz') == 0 |
| 48 | |
| 49 | def test_format(self): |
| 50 | x = self.graph1() |
| 51 | x.formatter = Mock() |
| 52 | obj = Mock() |
| 53 | assert x.format(obj) |
| 54 | x.formatter.assert_called_with(obj) |
| 55 | x.formatter = None |
| 56 | assert x.format(obj) is obj |
| 57 | |
| 58 | def test_items(self): |
| 59 | assert dict(self.graph1().items()) == { |