def test_ns_invalid_type(): c = ConnectClient('Api Key', use_specs=False) with pytest.raises(TypeError): c.ns(c)
def test_ns_invalid_value(): c = ConnectClient('Api Key', use_specs=False) with pytest.raises(ValueError): c.ns('')
def test_ns(mocker): c = ConnectClient('Api Key', use_specs=False) assert isinstance(c.ns('namespace'), NS)