def test_raises_when_is_created_already(self): assert_raise_library_error( lambda: commands.create_in_cluster(_env_fixture("somename"), ip="1.2.3.4"), (Severities.ERROR, report_codes.BOOTH_ALREADY_IN_CIB, { "name": "somename", }), )
def test_raises_when_is_created_already(self): assert_raise_library_error( lambda: commands.create_in_cluster( mock.MagicMock(), "somename", ip="1.2.3.4", ), ( Severities.ERROR, report_codes.BOOTH_ALREADY_IN_CIB, { "name": "somename", } ), )