def test_02_write_cmd(self): res = disdiff.parse_args( 'write 1234 out.file.name'.split() ) self.assertEqual(res.first_tree, None) self.assertEqual(res.second_tree, None) self.assertEqual(res.write_tree, "1234") self.assertEqual(res.out_name, "out.file.name")
def test_02_compare_cmd(self): res = disdiff.parse_args( 'compare dir1 dir2'.split() ) self.assertEqual(res.first_tree, "dir1") self.assertEqual(res.second_tree, "dir2") self.assertEqual(res.write_tree, None)
def test_01_write_cmd_default(self): res = disdiff.parse_args( 'write toto1'.split() ) self.assertEqual(res.first_tree, None) self.assertEqual(res.second_tree, None) self.assertEqual(res.write_tree, "toto1") self.assertEqual(res.out_name, "out.md5")