def test_incorrect_role(self): with pytest.raises(ValueError): iperf3.IPerf3(role='bla')
def test_run_not_implemented(self): with pytest.raises(NotImplementedError): client = iperf3.IPerf3(role='c') client.run()