-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This format is used to transfer files from sd-svs to sd-export-usb
- Loading branch information
Showing
2 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import unittest | ||
import json | ||
|
||
from base import SD_VM_Local_Test | ||
|
||
|
||
class SD_Export_Tests(SD_VM_Local_Test): | ||
|
||
def setUp(self): | ||
self.vm_name = "sd-export-dvm" | ||
super(SD_Export_Tests, self).setUp() | ||
|
||
def test_files_are_properly_copied(self): | ||
self.assertFilesMatch("/usr/bin/send-to-usb", | ||
"sd-export/send-to-usb") | ||
self.assertFilesMatch("/usr/share/applications/send-to-usb.desktop", | ||
"sd-export/send-to-usb.desktop") | ||
self.assertFilesMatch("/usr/share/mime/packages/application-x-sd-export.xml", | ||
"sd-export/application-x-sd-export.xml") | ||
|
||
def load_tests(loader, tests, pattern): | ||
suite = unittest.TestLoader().loadTestsFromTestCase(SD_Export_Tests) | ||
return suite |