# Path: auto_forensicate/recipes/base.py
# class BaseArtifact(object):
# class StringArtifact(BaseArtifact):
# class FileArtifact(BaseArtifact):
# class ProcessOutputArtifact(BaseArtifact):
# class BaseRecipe(object):
#   def __init__(self, name):
#   def _GetStream(self):
#   def CloseStream(self):
#   def OpenStream(self):
#   def size(self):
#   def readable_size(self):
#   def __init__(self, path, string_content):
#   def _GetStream(self):
#   def CloseStream(self):
#   def __init__(self, path):
#   def _GetStream(self):
#   def __init__(self, command, path, ignore_failure=False):
#   def _RunCommand(self):
#   def _GetStream(self):
#   def __init__(self, name, options=None):
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_value, traceback):
#   def GetArtifacts(self):


import os
import tempfile
import unittest
import mock
from auto_forensicate.recipes import base
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for the base.py module."""

from __future__ import unicode_literals




class BaseArtifactTests(unittest.TestCase):
  """Tests for the BaseArtifact class."""

  def testInstantiate(self):
    """Tests instanciating a BaseArtifact object."""
    artifact_name = 'artifact'
    artifact = base.BaseArtifact(artifact_name)

    self.assertEqual(artifact.size, 0)
    self.assertEqual(artifact.name, artifact_name)
    expected_remote_path = 'Base/artifact'
    self.assertEqual(artifact.remote_path, expected_remote_path)

  def testReadableSize(self):
    """Tests ReadableSize() method."""
    artifact_name = 'artifact'

# Path: auto_forensicate/recipes/base.py
# class BaseArtifact(object):
# class StringArtifact(BaseArtifact):
# class FileArtifact(BaseArtifact):
# class ProcessOutputArtifact(BaseArtifact):
# class BaseRecipe(object):
#   def __init__(self, name):
#   def _GetStream(self):
#   def CloseStream(self):
#   def OpenStream(self):
#   def size(self):
#   def readable_size(self):
#   def __init__(self, path, string_content):
#   def _GetStream(self):
#   def CloseStream(self):
#   def __init__(self, path):
#   def _GetStream(self):
#   def __init__(self, command, path, ignore_failure=False):
#   def _RunCommand(self):
#   def _GetStream(self):
#   def __init__(self, name, options=None):
#   def __enter__(self):
#   def __exit__(self, exc_type, exc_value, traceback):
#   def GetArtifacts(self):


# Path: tests/base_tests.py
import os
import tempfile
import unittest
import mock
from auto_forensicate.recipes import base

#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for the base.py module."""

from __future__ import unicode_literals




class BaseArtifactTests(unittest.TestCase):
  """Tests for the BaseArtifact class."""

  def testInstantiate(self):
    """Tests instanciating a BaseArtifact object."""
    artifact_name = 'artifact'
    artifact = base.BaseArtifact(artifact_name)

    self.assertEqual(artifact.size, 0)
    self.assertEqual(artifact.name, artifact_name)
    expected_remote_path = 'Base/artifact'
    self.assertEqual(artifact.remote_path, expected_remote_path)

  def testReadableSize(self):
    """Tests ReadableSize() method."""
    artifact_name = 'artifact'

    artifact = base.BaseArtifact(artifact_name)