Beispiel #1
0
    def test_handle_file_ensures_filename_reference(self):
	handle_file(self.file_entry, self.remote_driver)

	self.ensure_reference.assert_called_once_with(*self.file_entry)
Beispiel #2
0
    def test_handle_file_removes_synced_file(self):
	handle_file(self.file_entry, self.remote_driver)

        self.remote_driver.remove_file.assert_called_once_with(self.file_entry[0])
Beispiel #3
0
    def test_handle_file_ensures_file_in_buffer(self):
	handle_file(self.file_entry, self.remote_driver)

	self.ensure_file_in_buffer.assert_called_once_with(self.file_entry[0], self.file_entry[1], self.remote_driver)