from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import shutil
import sys
import tempfile

from observations.r.morley import morley


def test_morley():
  """Test module morley.py by downloading
   morley.csv and testing shape of
   extracted data has 100 rows and 3 columns
  """
  test_path = tempfile.mkdtemp()
  x_train, metadata = morley(test_path)
  try:
    assert x_train.shape == (100, 3)
  except:
    shutil.rmtree(test_path)
    raise()

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import shutil
import sys
import tempfile

from observations.r.morley import morley


def test_morley():
  """Test module morley.py by downloading
   morley.csv and testing shape of
   extracted data has 100 rows and 3 columns
  """
  test_path = tempfile.mkdtemp()
  x_train, metadata = morley(test_path)
  try:
    assert x_train.shape == (100, 3)
  except:
    shutil.rmtree(test_path)
    raise()

Test module morley.py by downloading    morley.csv and testing shape of    extracted data has 100 rows and 3 columns