from nose.tools import *

import anchorhub.main as main


def test_one():
    """
    main.py: Test defaults with local directory as input.
    """
    main.main(['.'])

from nose.tools import *

import anchorhub.main as main
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator


def test_one():
    """
    main.py: Test defaults with local directory as input.
    """
    main.main([get_anchorhub_path() + get_path_separator() +
               '../sample/multi-file'])

Modify main.py tests to use get_anchorhub_path()
Modify main.py tests to use get_anchorhub_path()

  from nose.tools import *
  
  import anchorhub.main as main
+ from anchorhub.util.getanchorhubpath import get_anchorhub_path
+ from anchorhub.compatibility import get_path_separator
  
  
  def test_one():
      """
      main.py: Test defaults with local directory as input.
      """
-     main.main(['.'])
+     main.main([get_anchorhub_path() + get_path_separator() +
+                '../sample/multi-file'])
  
Modify main.py tests to use get_anchorhub_path()
## Code Before:
from nose.tools import *

import anchorhub.main as main


def test_one():
    """
    main.py: Test defaults with local directory as input.
    """
    main.main(['.'])

## Instruction:
Modify main.py tests to use get_anchorhub_path()
## Code After:
from nose.tools import *

import anchorhub.main as main
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator


def test_one():
    """
    main.py: Test defaults with local directory as input.
    """
    main.main([get_anchorhub_path() + get_path_separator() +
               '../sample/multi-file'])
