~larry-e-works/uci-engine/amqp-to-kombu

« back to all changes in this revision

Viewing changes to cli/tests/test_file_handler.py

  • Committer: Joe Talbott
  • Date: 2014-01-27 14:54:08 UTC
  • mfrom: (126.3.8 webui)
  • mto: This revision was merged to the branch mainline in revision 161.
  • Revision ID: joe.talbott@canonical.com-20140127145408-zpubebx02y6oumxq
merge doanac's cleanup branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        self.source_version = source_version
36
36
        self.packaging_version = packaging_version
37
37
        self.full_version = "%s-%s" % (self.source_version,
38
 
                self.packaging_version)
 
38
                                       self.packaging_version)
39
39
        self.changes_file = (
40
40
            "%s_%s-%s_source.changes" % (self.source_name, self.source_version,
41
41
                                         self.packaging_version))
75
75
 
76
76
    def test_upload_dir_not_found(self):
77
77
        self.assertRaises(UploadDirNotFound, ChangesProcessor,
78
 
            self._get_test_fullpath(self.changes_file), "foo/bar/baz")
 
78
                          self._get_test_fullpath(self.changes_file),
 
79
                          "foo/bar/baz")
79
80
 
80
81
    def test_files_to_upload_dir_found(self):
81
82
        processor = ChangesProcessor(
89
90
            files_to_upload_dir="tests")
90
91
        self.assertRaises(FileToUploadNotFound, processor.parse)
91
92
 
92
 
 
93
93
    def test_all_files_found(self):
94
94
        processor = ChangesProcessor(
95
95
            self._get_test_fullpath(self.changes_file))