import pytest

#############

from lab10 import spacedString

def test_spacedString_1():
    assert spacedString("UCSB",1)=="U C S B"

def test_spacedString_2():
    assert spacedString("Cal Poly",2)=="C  a  l     P  o  l  y"

def test_spacedString_3():
    assert spacedString("UCSD",0)=="UCSD"

def test_spacedString_4():
   with pytest.raises(ValueError):
      result = spacedString("UCSD",-1)

def test_spacedString_5():
   with pytest.raises(ValueError):
      result = spacedString(["not a string"],0)

def test_spacedString_5():
   with pytest.raises(ValueError):
      result = spacedString("A String","Not an int")
      
##########################




import pytest

#############

from lab10 import spacedString

def test_spacedString_1():
    assert spacedString("UCSB",1)=="U C S B"

def test_spacedString_2():
    assert spacedString("Cal Poly",2)=="C  a  l     P  o  l  y"

def test_spacedString_3():
    assert spacedString("UCSD",0)=="UCSD"

def test_spacedString_4():
   with pytest.raises(ValueError):
      result = spacedString("UCSD",-1)

def test_spacedString_5():
   with pytest.raises(ValueError):
      result = spacedString(["not a string"],0)

def test_spacedString_6():
   with pytest.raises(ValueError):
      result = spacedString("A String","Not an int")

def test_spacedString_7():
    assert spacedString("U",1)=="U"

def test_spacedString_8():
    assert spacedString("UC",1)=="U C"

def test_spacedString_9():
    assert spacedString(" A ",1)=="  A  "

def test_spacedString_10():
    assert spacedString("X X",1)=="X   X"

        
##########################




Update lab10_tests.py