def test_rm_all(self, rmtree): fk.delete_files('Project2', None, DOCFILESDIR, True) realpath = os.path.join(DOCFILESDIR, 'Project2') rmtree.assert_called_once_with(realpath)
def test_noop_if_not_exist(self, rmtree): fk.delete_files('foo', '1.1.1', 'blah') self.assertFalse(rmtree.call_count)
def test_rm_version(self, rmtree): fk.delete_files('Project2', '2.0.3', DOCFILESDIR) realpath = os.path.join(DOCFILESDIR, 'Project2', '2.0.3') rmtree.assert_called_once_with(realpath)
def test_rm_all(self, rmtree): fk.delete_files("Project2", None, DOCFILESDIR, True) realpath = os.path.join(DOCFILESDIR, "Project2") rmtree.assert_called_once_with(realpath)
def test_rm_version(self, rmtree): fk.delete_files("Project2", "2.0.3", DOCFILESDIR) realpath = os.path.join(DOCFILESDIR, "Project2", "2.0.3") rmtree.assert_called_once_with(realpath)
def test_noop_if_not_exist(self, rmtree): fk.delete_files("foo", "1.1.1", "blah") self.assertFalse(rmtree.call_count)