コード例 #1
0
ファイル: test_slice_gct.py プロジェクト: minghao2016/cmapPy
    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
ファイル: test_slice_gct.py プロジェクト: minghao2016/cmapPy
 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"])