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

        with self.assertRaises(AssertionError) as e:
            sg._read_arg([1, 2, 3])
        self.assertIn("arg_out must be a list of strings", str(e.exception))
Example #2
0
 def test_read_arg(self):
     arg_path = os.path.join("cmapPy/pandasGEXpress/tests/functional_tests/", "test_subset_rid.grp")
     rids = sg._read_arg([arg_path])
     self.assertCountEqual(rids, ["a", "Bb", "c"])
Example #3
0
 def test_read_arg(self):
     arg_path = os.path.join("../functional_tests", "test_subset_rid.grp")
     rids = sg._read_arg([arg_path])
     self.assertCountEqual(rids, ["a", "Bb", "c"])