def test_position_html(): """For jupyter notebook """ position = Position(**{'upper': 75, 'lower': 85}) html = """<table><tr><td><strong>upper</strong></td><td>75.0</td></tr><tr><td><strong>middle</strong></td><td></td></tr><tr><td><strong>lower</strong></td><td>85.0</td></tr></table>""" assert position._repr_html_() == html