예제 #1
0
    def test_read_arg_bad(self):
        with self.assertRaises(AssertionError) as e:
            slice_gct._read_arg("a b c")
        self.assertIn("arg_out must be a list", str(e.exception))

        with self.assertRaises(AssertionError) as e:
            slice_gct._read_arg([1, 2, 3])
        self.assertIn("arg_out must be a list of strings", str(e.exception))
예제 #2
0
 def test_read_arg(self):
     arg_path = os.path.join(FUNCTIONAL_TESTS_DIR, "test_slice_rid.grp")
     rids = slice_gct._read_arg([arg_path])
     self.assertItemsEqual(rids, ["a", "Bb", "c"])
예제 #3
0
 def test_read_arg(self):
     arg_path = os.path.join("functional_tests", "test_slice_rid.grp")
     rids = slice_gct._read_arg([arg_path])
     self.assertItemsEqual(rids, ["a", "Bb", "c"])