1
from testtools import TestCase, ExpectedException
2
from testtools.matchers import Equals
4
from support_scripts import generate_nfss_result_file as gen_nfss
7
class ScriptInteractionTests(TestCase):
8
"""Ensure the script reacts as expected."""
9
def test_parse_args_returns_source_and_destination_files(self):
10
test_args = ["source", "destination"]
12
gen_nfss.parse_args(test_args),
13
Equals(("source", "destination"))
16
def test_raise_on_invalid_args_doesnt_raise_with_correct_args(self):
17
gen_nfss.raise_on_invalid_args(["self", "source", "destination"])
19
def test_raise_on_invalid_args_raises_with_incorrect_args(self):
20
with ExpectedException(RuntimeError):
21
gen_nfss.raise_on_invalid_args([])