
from permamodel.components import frost_number
import os
import numpy as np
from .. import permamodel_directory, data_directory, examples_directory

def test_directory_names_are_set():
    assert(permamodel_directory is not None)



import os
from nose.tools import assert_true
from .. import (permamodel_directory, data_directory,
                examples_directory, tests_directory)


def test_permamodel_directory_is_set():
    assert(permamodel_directory is not None)


def test_data_directory_is_set():
    assert(data_directory is not None)


def test_examples_directory_is_set():
    assert(examples_directory is not None)


def test_tests_directory_is_set():
    assert(tests_directory is not None)


def test_permamodel_directory_exists():
    assert_true(os.path.isdir(permamodel_directory))


def test_data_directory_exists():
    assert_true(os.path.isdir(data_directory))


def test_examples_directory_exists():
    assert_true(os.path.isdir(examples_directory))


def test_tests_directory_exists():
    assert_true(os.path.isdir(tests_directory))

Add unit tests for all package directories
Add unit tests for all package directories

  
- from permamodel.components import frost_number
  import os
- import numpy as np
+ from nose.tools import assert_true
- from .. import permamodel_directory, data_directory, examples_directory
+ from .. import (permamodel_directory, data_directory,
+                 examples_directory, tests_directory)
  
- def test_directory_names_are_set():
+ 
+ def test_permamodel_directory_is_set():
      assert(permamodel_directory is not None)
  
  
+ def test_data_directory_is_set():
+     assert(data_directory is not None)
+ 
+ 
+ def test_examples_directory_is_set():
+     assert(examples_directory is not None)
+ 
+ 
+ def test_tests_directory_is_set():
+     assert(tests_directory is not None)
+ 
+ 
+ def test_permamodel_directory_exists():
+     assert_true(os.path.isdir(permamodel_directory))
+ 
+ 
+ def test_data_directory_exists():
+     assert_true(os.path.isdir(data_directory))
+ 
+ 
+ def test_examples_directory_exists():
+     assert_true(os.path.isdir(examples_directory))
+ 
+ 
+ def test_tests_directory_exists():
+     assert_true(os.path.isdir(tests_directory))
+ 
Add unit tests for all package directories
## Code Before:

from permamodel.components import frost_number
import os
import numpy as np
from .. import permamodel_directory, data_directory, examples_directory

def test_directory_names_are_set():
    assert(permamodel_directory is not None)


## Instruction:
Add unit tests for all package directories
## Code After:

import os
from nose.tools import assert_true
from .. import (permamodel_directory, data_directory,
                examples_directory, tests_directory)


def test_permamodel_directory_is_set():
    assert(permamodel_directory is not None)


def test_data_directory_is_set():
    assert(data_directory is not None)


def test_examples_directory_is_set():
    assert(examples_directory is not None)


def test_tests_directory_is_set():
    assert(tests_directory is not None)


def test_permamodel_directory_exists():
    assert_true(os.path.isdir(permamodel_directory))


def test_data_directory_exists():
    assert_true(os.path.isdir(data_directory))


def test_examples_directory_exists():
    assert_true(os.path.isdir(examples_directory))


def test_tests_directory_exists():
    assert_true(os.path.isdir(tests_directory))
