from nose.tools import istest, assert_equal

from spur import LocalShell

shell = LocalShell()

@istest
def output_of_run_is_stored():
    result = shell.run(["echo", "hello"])
    assert_equal("hello\n", result.output)

from nose.tools import istest, assert_equal

from spur import LocalShell

shell = LocalShell()

@istest
def output_of_run_is_stored():
    result = shell.run(["echo", "hello"])
    assert_equal("hello\n", result.output)

@istest
def cwd_of_run_can_be_set():
    result = shell.run(["pwd"], cwd="/")
    assert_equal("/\n", result.output)

Add test for setting cwd in LocalShell.run
Add test for setting cwd in LocalShell.run

  from nose.tools import istest, assert_equal
  
  from spur import LocalShell
  
  shell = LocalShell()
  
  @istest
  def output_of_run_is_stored():
      result = shell.run(["echo", "hello"])
      assert_equal("hello\n", result.output)
  
+ @istest
+ def cwd_of_run_can_be_set():
+     result = shell.run(["pwd"], cwd="/")
+     assert_equal("/\n", result.output)
+ 
Add test for setting cwd in LocalShell.run
## Code Before:
from nose.tools import istest, assert_equal

from spur import LocalShell

shell = LocalShell()

@istest
def output_of_run_is_stored():
    result = shell.run(["echo", "hello"])
    assert_equal("hello\n", result.output)

## Instruction:
Add test for setting cwd in LocalShell.run
## Code After:
from nose.tools import istest, assert_equal

from spur import LocalShell

shell = LocalShell()

@istest
def output_of_run_is_stored():
    result = shell.run(["echo", "hello"])
    assert_equal("hello\n", result.output)

@istest
def cwd_of_run_can_be_set():
    result = shell.run(["pwd"], cwd="/")
    assert_equal("/\n", result.output)
