示例#1
0
 def plot_arc_test(self, fig, *args, **kw):
     b = Bloch(fig=fig)
     b.add_arc(*args, **kw)
     b.render()
示例#2
0
 def test_arc_errors(self, start, end, err_msg):
     b = Bloch()
     with pytest.raises(ValueError) as err:
         b.add_arc(start, end)
     assert str(err.value) == err_msg