示例#1
0
 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)
示例#2
0
 def test_noop_if_not_exist(self, rmtree):
     fk.delete_files('foo', '1.1.1', 'blah')
     self.assertFalse(rmtree.call_count)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 def test_noop_if_not_exist(self, rmtree):
     fk.delete_files("foo", "1.1.1", "blah")
     self.assertFalse(rmtree.call_count)
示例#7
0
 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)
示例#8
0
 def test_noop_if_not_exist(self, rmtree):
     fk.delete_files('foo', '1.1.1', 'blah')
     self.assertFalse(rmtree.call_count)